This repo is the compilation of my git usage knowledge, for everyday troubleshooting and life / time saver settings I have. I made it to have a trustworthy reference to go to, instead of endlessly roaming on StackOverflow when I want to do something special. I'd also be extra happy if it can help others :)
~ means commit before last
^ means previous commit
-- makes references to a file and not a branch explicitly
- Studying repo History
- Fixing mistakes
- Fixing conflicts
- Stashing
- My git config
- Housekeeping the repo
- Meddling with commits
- Juggling with several git config
When I haven't forgotten the source of my findings already, I'll list them here:
- Andrew Ray's blog (for
git blameoptions) - A StackOverflow answer by underrun (for
git logformatting) - A StackOverflow answer by Charles Bailey (for restoring deleted files)
- A StackOverflow answer by inger (for conflicted files)
- Various answers under this StackOverflow question (for
git stashprecisions) - A StackOverflow question by pepr (for
git logspecific to an author) - Oh shit git (for
git reflog) - A blog post from Arne Hartherz
(for
git rebase) - Git doc (for many, many things)