Skip to content

Moving commit diverges branches #23999

Discussion options

You must be logged in to vote

There are various ways to achieve this:

  • git push origin master:b2 --force-with-lease
  • git checkout b2; git reset --hard master; git push origin b2 --force-with-lease

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants