Undo a git commit
You can always just revert the changes from a single commit by doing: git revert <commit-id> note that this creates a new commit, undoing just those changes E.g. git log –oneline d806fc9 two 18cdfa2 bye 62c332e hello c7811ee initial Say I want to revert changes in commit 18cdfa2: git revert 18cdfa2 We now have: git …