Help for Git Commands - FR & EN version - WIP
git config --global user.name <user_name>
git config --global user.email <user_email>
git init <project_name>
Head to an empty folder.
Type :
git clone <url>
If the main branch isn't the one you're looking for then, type:
git checkout <branch_name>
If the main branch isn't the one you're looking for, and you want to create a new branch, type:
git checkout -b <branch_name>
- add files
git add .
-> add all modified files to be commited
OR
git add <file1> <file2> <file3>
-> add file1, file2, fileX..... to be commited.
- Commit with message (2 levels)
git commit
-> you will be asked to add a message via a "vi" integrated editor in your terminal (Visual Studio Code)
More on VI commands.
OR
git commit -m"Title of changes"
-> Adds a brief description about the commit
git commit -m"Title of changes" -m"description"
-> Adds a brief description about the commit and a description.
You can make the description longer by not entering the second "
and pressing Enter
to go to the line if needed.
- git push WIP
########### WIP ###################