git版本1.8之前使用下面命令:
git branch --set-upstream local origin/remote
local 和 remote 是本地和遠端倉庫名字。
git版本1.8之後可以使用下面這條命令:
git branch --set-upstream-to origin/remote
git版本1.8之前使用下面命令:
git branch --set-upstream local origin/remote
local 和 remote 是本地和遠端倉庫名字。
git版本1.8之後可以使用下面這條命令:
git branch --set-upstream-to origin/remote