Follow

Git In Two Minutes (for a solo developer)
garyrobinson.net/2014/10/git-i

tldr;
git init
git add .
git commit -a -m "This is your commit message for all changed files"
git log --pretty=oneline
git log
git checkout HEAD -- <filename>
git checkout 179e59467039 -- myfile
git diff HEAD -- <filename>
git diff <hash1> <hash2> -- <filename>
git reset HEAD^
git commit --amend -m "Replacement commit message"
git status

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.