- git status
- git add ...
- git reset ...
- git commit ...
- git log ...
- git push/pull ...
I guess that's "the basics" - what command should I learn next?
Other useful stuff: - git diff - git diff --cached - git log --graph --decorate --pretty=oneline --abbrev-commit --all - git cherry-pick - git stash
Disclaimer: wrote this a few years ago and it has way more users than I ever would have thought.
http://blog.kfish.org/2010/04/git-lola.html
Being able to see the graph structure made it far easier for me to get a grasp git's general structure and flow on a higher level.
More powerful history browsers to "lola": * gitk (graphical, developed in git's own repo) https://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to... * tig (console) http://jonas.nitro.dk/tig/manual.html
http://git-scm.com/book/en/v2/Git-Basics-Undoing-Things
fixup = commit --amend -C HEAD
I do love `rebase -i` for anything more complicated though.
- git status
- git add ...
- git reset ...
- git commit ...
- git log ...
- git push/pull ...
I guess that's "the basics" - what command should I learn next?