Need to reset git branch to origin version
If you haven’t pushed to origin yet, you can reset your branch to the upstream branch with: (Make sure that you reference your latest commit in a separate branch, like you mention in your question) Note that just after the reset, mybranch@{1} refers to the old commit, before reset. But if you had already pushed, … Read more