我項(xiàng)目比如是0.2分支,我需要修改項(xiàng)目的git地址,然后再pull新的代碼
1)修改github地址(讀者可以忽略)
1.git remote 查看所有遠(yuǎn)程倉(cāng)庫(kù)
2.git remote rm origin 刪除之前的版本庫(kù)
3.git remote add origin http://****.git 增加新的地址
項(xiàng)目已經(jīng)切換新的git地址了,然后我現(xiàn)在需要拉代碼
git pull
提示錯(cuò)誤如下
IGG@A12128 MINGW64 /f/browesr/program/*** (**-0.2)
$ 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> browser-0.2
說(shuō)明提示當(dāng)前branch沒(méi)有跟蹤信息
git branch --set-upstream-to=origin/當(dāng)前分支名字 當(dāng)前分支名字
git branch --set-upstream-to=origin/****-0.2 ****-0.2
git pull
就可以了
聯(lián)系客服