Git cheatsheet
git config --global user.name "Teererai" |
git config --global user.email "tmar080@aucklanduni.ac.nz" |
git config --global color.ui "auto" |
git config --list |
git init |
git status |
git status --ignored |
git add somefile.txt |
git commit -m "some message" |
git log |
git diff |
git diff --staged |
git remote add origin https://github.com/Teererai/planets.git` |
git remote -v |
git push origin master |
git pull origin master |
HEAD~X |
X commits from the last one where X is int.
|
HEAD |
Last commit
|
git diff HEAD~X |
diff for head-X
|
git checkout HEAD~X |
restores head-X
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.