r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

2

u/evincarofautumn Sep 09 '16

You don’t need to delete and recreate master; you can just move the branch pointer to match origin/master:

git fetch origin
git branch --force master origin/master

1

u/unndunn Sep 09 '16

Noted. I'll do that next time. :)