Git Error: fatal: Cannot setup tracking information; starting point 'origin/bb' is not a branch.

 

 

Causation:

 

Your origin remote is set up to fetch only certain branches

git remote set-branches --add origin bb
git remote set-branches origin '*'

 

It is because that your repo contains config that asks fetch command to retrieve only some specific branch(es) instead of just all of them. You can check the configuration you have using 

git config --local --get-all remote.origin.fetch

 

git remote -v update origin
git rev-parse --symbolic-full-name origin/bb

 

posted @ 2021-12-05 16:45  ascertain  阅读(861)  评论(0编辑  收藏  举报