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#

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM