Commandes git de base
create & clone
create new repository
git init
clone local repository
git clone /path/to/repository
clone remote repository
git clone usemame@host:/path/to/repository
add & remove
add changes to INDEX
git add
add all changes to INDEX
git add *
remove/delete
git rm
commit & synchronize
commit changes
git commit -m "Commit message"
push changes to remote repository
git push origin master
connect local repository to remote repository
git remote add origin
update local repository with remote changes
git pull
branches
create new branch
git checkout -b
switch to master branch
git checkout master
delete branch
git branch -d
push branch to remote repository
git push origin
merge
merge changes from another branch
git merge
view changes between two branches
git diff
tagging
create tag
git tag
get commit IDs
git log
restore
replace working copy with latest from HEAD
git checkout -- < filename >