我创建了 2 个本地分支来跟踪远程分支:
# git branch1 -t origin/branch1
# git branch2 -t origin/branch2
但是在我执行“repo sync”并执行 agit remote show origin
之后,我看到我的分支是“与远程 dev 合并,而不是 branch1 和 branch2”,它们是“正确推送到”,但它说“本地已过期”。
# git remote show origin
...
Local branches configured for 'git pull':
branch1 merges with remote dev
branch2 merges with remote dev
Local refs configured for 'git push':
branch1 pushes to branch1 (local out of date)
branch2 pushes to branch2 (local out of date)
我怎样才能让我的分支(branch1,branch2)“与正确的分支合并”?并让我的'本地不再'过时'?
谢谢你。