2
我試圖跟蹤遠程分支和最終做了以下內容:撤消的Git track命令
$ git branch --track origin/branch1
Branch origin/branch1 set up to track local branch branch1.
這顯然不是什麼我打算這樣做。我將如何撤消此設置?我試圖自己糾正:
$ git branch --track origin branch1
error: there are still refs under 'refs/heads/origin'
fatal: Failed to lock ref for update: Is a directory
$ git branch --track branch1 origin/branch1
fatal: A branch named 'branch1' already exists.
$ git branch --no-track origin/branch1
fatal: A branch named 'origin/branch1' already exists.
...無濟於事。提前致謝!