Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
argulane
· 2y ago · 0 comments
You can also `git fetch` and `git reset --hard origin/force-pushed-branch` to get your local branch up to speed with remote one assuming you don't have any local changes.
Comments
[–]
wsc981
2y ago
And if you do have changes, can create a new (temp) branch from diverged, reset the diverged branch to origin and cherry pick your own commits on top.