Y
Hacker News
new
|
ask
|
show
|
jobs
by
argulane
615 days ago
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.
1 comments
wsc981
615 days 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.
link