git工具:塔
分支跟踪:origin
并在推荐行中显示:
.接下来我更改塔中的跟踪:origin-fock
.在推荐行中:
如何在命令行中使用git command????完成此操作
Without deleting anything, using git v1.8.0 or later:
git branch branch_name --set-upstream-to your_new_remote/branch_name
Or you can use the -u switch:
git branch branch_name -u your_new_remote/branch_name
Using git up to v1.7.12:
git branch --set-upstream branch_name your_new_remote/branch_name
Run Code Online (Sandbox Code Playgroud)
另请检查 使现有 Git 分支跟踪远程分支?