I did the following:
git fetch --all
git checkout -b my-feature-branch master
// did some edits
git commit -m "some commit comments"
git rebase another-branch
I get git error: "invalid upstream 'another-branch'
I can see the 'another-branch' on the remote so I am not sure what is happening. Any help is really appreciated.
You need to checkout 'another-branch' locally before rebasing it.
git checkout -b another-branch origin/another-branch
Or, you need to pull all the branch after fetching
git pull --all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With