by 100k · 15y ago · 0 comments
I use it all the time to fix typos, add a file I forgot to add, or whatever. Once you push, it is more difficult, but I try not to push my code until it works. I also commit only tested chunks of code, so that is the "unit of work" I aim for.
The equivalent in git is something stupid, I have to look it up every time: git reset --soft HEAD^
That's intuitive!
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.
The point is that you can make just about any workflow with git. The ones that git users less commonly use may not be have easy toplevel commands. People already complain about how many toplevel commands there are with git.