• 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#

  • 相关阅读:
    纯JS.CSS编写的可拖拽并左右分栏的插件(复制代码就能用)
    jquery on()方法重复绑定解决方法
    在PHP语言中使用JSON和将json还原成数组
    Flex 布局教程:语法篇
    在线生成大全(这里真的什么都有)
    css3(border-radius)边框圆角详解
    css常用鼠标指针形状代码
    input 正则限制输入内容
    html中input标签的tabindex属性
    CSS gradient渐变之webkit核心浏览器下的使用
  • 原文地址:https://www.cnblogs.com/rsapaper/p/13372874.html
Copyright © 2020-2023  润新知