Git Cheat Sheet
Introduction
Teams of developers and open-source software maintainers typically manage their projects through...
For further actions, you may consider blocking this person and/or reporting abuse
Thank you, this list is a gem.
I have a walkthrough if you are interested in using git interactive mode
git add -i
which I use when I want to break down my commits into semantic/atomic commits instead of committing all changes (usually a few small feature changes) in one go.Thank for this,
I think it's also worth mentioning about
git revert 1fc6665
which contrary togit reset --hard 1fc6665
will not remove completely the commit from the history but will create a new commit that reverses the specified commit and won't delete it from the history asgit reset
does, so that if later you realize that those changes were not so bad you can come back to them easily again 😄NB: With
git reset
, you'll be oblige togit push -f
(Forcing updating of the upstream)Great summary! Very helpful.
Thanks for this, great list.
If you are like me and prefer things a bit more visual, then SmartGIT is a great little app to use: syntevo.com/smartgit/