Hacker News new | ask | show | jobs
by Myrmornis 4575 days ago
Yes, this is how beginners should be taught to "back up" in git.
1 comments

In the interest of making this easier:

    git branch branchname-backup
    #do dangerous stuff ...
    # whoops I just broke the branch really bad I'll start over
    git reset branchname-backup