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
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.