git branch --set-upstream-to=
test@uat:/usr/server/app_server# git config --local -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@code.aliyun.com:app/app_server.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
test@uat:/usr/server/app_server#
test@uat:/usr/server/app_server# git pull
remote: Counting objects: 6, done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
From code.aliyun.com:app/app_server
* [new branch] dev -> origin/dev
0a1307e4..1ce7ef06 hotfix_master -> origin/hotfix_master
23eda15c..1ce7ef06 master -> origin/master
* [new branch] sit -> origin/sit
0a1307e4..1ce7ef06 test -> origin/test
faf871a8..1ce7ef06 uat -> origin/uat
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> uat
test@uat:/usr/server/app_server# git pull origin uat
From code.aliyun.com:app/app_server
* branch uat -> FETCH_HEAD
Updating faf871a8..1ce7ef06
Fast-forward
src/app/settings_conf/sit.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
test@uat:/usr/server/app_server# git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> uat
test@uat:/usr/server/app_server# git branch --set-upstream-to=origin/uat uat
Branch 'uat' set up to track remote branch 'uat' from 'origin'.
test@uat:/usr/server/app_server# git config --local -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git@code.aliyun.com:app/app_server.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.uat.remote=origin
branch.uat.merge=refs/heads/uat
test@uat:/usr/server/app_server#