git merge and got this error “does not point to a commit”

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  git@github.com:leezhm/openFrameworks.git (fetch)
origin  git@github.com: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

  • Why does git fetch via hudson fail, while git fetch via the command line works?
  • how to fetch the old code from git repository
  • Git: What do the numbers reported by `git fetch` mean?
  • git refusing to fetch into current branch
  • Specifying branch arguments to git fetch, merge, and push
  • git: setting a single tracking remote from a public repo
  • git fetch upstream develop
    git merge upstream/mac8
    

    It always got the following error

    fatal: 'upstream/mac8' does not point to a commit
    

  • Equivalent of Git's “amend last commit” in perforce
  • Pull from Git Bare Repository Doesn't Have Pushed Commits
  • Only trigger builds on new branches in Jenkins?
  • Upload maven pom.xml to Git repository?
  • How do you squelch git's automatic merge message?
  • Protocol error when pushing to Heroku from CircleCI
  • 3 Solutions collect form web for “git merge and got this error “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

    There is probably no corresponding branch in origin/xxx.

    Git Baby is a git and github fan, let's start git clone.