I forked a repo from github.com, and also had set the upstream remote. Below is my repo
[ Leezhm LIZHM ~/Developments/OF_GIT ] git remote -v
origin [email protected]:leezhm/openFrameworks.git (fetch)
origin [email protected]:leezhm/openFrameworks.git (push)
upstream https://github.com/openframeworks/openFrameworks.git (fetch)
upstream https://github.com/openframeworks/openFrameworks.git (push)
when I used this command
git fetch upstream develop
git merge upstream/mac8
It always got the following error
fatal: 'upstream/mac8' does not point to a commit
You are just fetching upstream/develop
, while you want to fetch origin
to have origin/mac8
available.
git fetch
git checkout "new brach"
git pull "new branch"
git merge "new branch"
This is worked for me
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