Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
argulane
1y ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
wsc981
1y 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.
j
/
k
navigate · click thread line to collapse