----- isHidden: false menupriority: 30 kind: article created_at: 2009-11-12T11:39:54+02:00 title: Git for n00b subtitle: Command List tags: - git ----- # Command List ## Command for each functionality In the first part, we saw the list of resolved problem by [Git][git]. To resume [Git][git] should do: - get others modifications, - send modifications to others, - get back in time, - list differences between each version, - name some versions in order to refer easily to them, - write an historic of modifications, - know who did what and when, - manage conflicts, - easily manage branches. ### get others modifications
$ git pull
$ git push
$ git pull
$ git push
$ git checkout
$ git revert
$ git uncommit 3
$ git revertbeforemerge
$ git checkout file
$ git checkout VersionHash file
$ git checkout HEAD~3 file
$ git status
$ git diff
$ git diff VersionHash fichier
$ git tag 'toto'
$ git log
$ git lg
$ git logfull
$ git blame fichier
$ git conflict
$ git branch branch_name
$ git checkout branch_name