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 @   ascertain  阅读(1011)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2020-12-05 mysql8 数据目录文件解释
2020-12-05 MySQL8 SDI
2020-12-05 keepalived
点击右上角即可分享
微信分享提示