|
|
|
|
|
by jackowayed
5632 days ago
|
|
git reset HEAD^ (soft is the default option) is actually pretty intuitive once you're used to git. You're reseting the index to the state it was one commit ago (which is what HEAD^ means. That comes up a lot.) And if you really forget it often, add this to your ~/.gitconfig: [alias]
rollback = reset HEAD^
Now you can run `git rollback` |
|
The fact that I have to make aliases for commonly used tasks is not a point in git's favor to me.