3 ms·
I think the biggest problem with 'git' is how hard it is to undo any mistakes. I'm freshly astonished every I mistakenly commit something and then have to care
by nineplay 6y ago
I think the biggest problem with 'git' is how hard it is to undo any mistakes. I'm freshly astonished every I mistakenly commit something and then have to carefully run 'git reset ~HEAD' some exact number of times to get back to a clean state.
Thank goodness for my pricey IDE and it's history caching or I'd never manage.
The reason I stick to 'commit', 'push' and 'merge' as my git flow is that I've gotten pretty good at undoing the messes I've made with them. I'm such a coward that my merge command is
`git merge <branch> master --no-ff --no-commit`
- JesseObrien 6y agoSounds like you need to use the reflog more often. git reflog keeps track of all changed references (branch tips, etc) being changed in your repository. You can effectively check back out into any state you want, whenever you want.
- plorkyeran 6y agoThe thing I love most about git is how easy it is to undo any mistake short of deleting the repository.
- fanf2 6y agoI am amused that you complain about the difficulty of fixing mistakes. It is legitimately hard, but in other version control systems that emphasise immutable history, it’s impossible!