远程仓库操作配置-Git详解(9)

[remote]配置

1
2
3
[remote "upstream"]
url = https://git.coding.net/cn-dream/test01.git
fetch = +refs/heads/*:refs/remotes/upstream/*

使用

1
$ git remote add upstream https://git.coding.net/cn-dream/test01.git

[branch]配置

1
2
$ git branch --set-upstream-to=origin/v0 v0
$ git branch -u origin/v0 v0

参考: