原文:更新GitHub項目出現There is no tracking information for the current branch. Please specify which branch you want to merge with. 怎么解決

git pull命令用於從另一個存儲庫或本地分支獲取並集成 整合 。git pull命令的作用是:取回遠程主機某個分支的更新,再與本地的指定分支合並,它的完整格式稍稍有點復雜。 如果當前分支只有一個追蹤分支,連遠程主機名都可以省略。 git pull 上面命令表示,當前分支自動與唯一一個追蹤分支進行合並。 當出現上面的情況時,我們可以有兩種解決方法 對於這種情況有兩種解決辦法,就比如說要操作mas ...

2018-12-19 11:03 0 4257 推薦指數:

查看詳情

git pull提示You are not currently on a branch. Please specify which

  在想拉取最新的git代碼時提示要輸入遠端分支。具體提示見以下:      這里的原因是因為不在master分支,在tag或者其它分支上。使用git branch查看,目前在一個tag上。   這里解決方式有2種。   或者更簡單的方式,直接指定分支 ...

Thu Oct 21 20:03:00 CST 2021 0 5540
git pull報錯:There is no tracking information for the current branch

是因為本地分支和遠程分支沒有建立聯系 (使用git branch -vv 可以查看本地分支和遠程分支的關聯關系) .根據命令行提示只需要執行以下命令即可 即,解決方法: 或 git branch –set–upstream new ...

Thu Oct 12 06:54:00 CST 2017 0 23315
fatal: You are not currently on a branch. 問題解決

fatal: You are not currently on a branch. 解決 注:親試,這種方法會把本地的修改給沖掉,所以事先一定要備份下文檔,之后覆蓋,重新上傳或pull即可;解決方法: 首先git checkout -b temp 其次git checkout master ...

Fri Feb 22 08:03:00 CST 2019 0 6083
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM