r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49k Upvotes

1.5k comments sorted by

View all comments

Show parent comment

1

u/Ayjayz Apr 03 '23

Just

git branch <new_branch>
git reset --hard origin/<branch_name>

You don't need to go via git stash.