Comment on On undoing, fixing, or removing commits in gitparentComments−Myrmornis12yYes, this is how beginners should be taught to "back up" in git.−simcop238712yIn 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
Comments
Yes, this is how beginners should be taught to "back up" in git.
In the interest of making this easier: