The worst one I\'ve been caught by was with git submodules. I had a submodule for a project on github. The project was unmaintained, and I wanted to submit patches, but co
It's not a gotcha, it's a gitcha.
Work work work ...
git commit
Work work work ...
git commit
Hm... time to integrate
git rebase -i origin/master
What? Conflicts? Let's start again
git reset --hard origin/master
Cry cry cry...
Git lets you wipe your local history without remorse. The biggest gotcha is that you are the safety net.