News for hackers. Stuff that matters.
Re:Oh shit, git: Getting myself out of bad situations by yes_or_gnome on Monday December 18, 2017 @05:15PM (#15956005)
I don't see how that's easier. There's `git checkout -b my-new-branch` which is even easier than the originally proposed solution. Followed by `git checkout master && git reset --hard @{u}` or, if you don't want to switch between branches, `git branch -f master master@{u}`.

There are no comments on this comment yet.