by tekkub · 16y ago · 0 comments
The best thing you can teach someone just learning git is to commit very frequently. If your files are committed, you can undo most any error. But if you've got a dirty working copy, you could lose it if you do something drastic. As an added bonus, this also teaches the user to branch often, and eventually they'll find the majick of `git rebase --interactive`
git branch origin :featureBranch?
disclaimer; don't experiment in a data critical repo