git errror

git error

  1. git pull error
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    [root@dev yaya]# 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> release


    解决方法:
    [root@dev yaya]# git branch
    dev
    master
    * release

    [root@dev yaya]# git branch -a
    dev
    master
    * release
    remotes/origin/HEAD -> origin/master
    remotes/origin/dev
    remotes/origin/master
    remotes/origin/release

    [root@dev yaya]# git branch --set-upstream-to=origin/release
    Branch release set up to track remote branch release from origin.

    [root@dev yaya]# git pull
    Already up-to-date.