Git之提示There is no tracking information for the current branch.
1 問題
我專案比如是0.2分支,我需要修改專案的git地址,然後再pull新的程式碼
1)修改github地址(讀者可以忽略)
1.git remote 檢視所有遠端倉庫
2.git remote rm origin 刪除之前的版本庫
3.git remote add origin http://****.git 增加新的地址
專案已經切換新的git地址了,然後我現在需要拉程式碼
git pull
提示錯誤如下
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
說明提示當前branch沒有跟蹤資訊
2 解決辦法
git branch --set-upstream-to=origin/當前分支名字 當前分支名字
git branch --set-upstream-to=origin/****-0.2 ****-0.2
git pull
就可以了
相關文章
- idea 提示 string template are not supported current JavaScrip Version 的解決【筆記】IdeaJava筆記
- 回溯(Back Tracking)
- 【git】Git commit時提示錯誤時 解決辦法GitMIT
- Visual Tracking Papers and Researchers
- 使用git pull提示refusing to merge unrelated historiesGit
- git中提示 please tell me who you areGit
- git學習之git rebaseGit
- Hadoop之JPS命令及真假現象(process information unavailable)HadoopORMAI
- MySQL預設資料庫之 information_schema庫MySql資料庫ORM
- 7.71 CURRENT_TIMESTAMP
- 7.70 CURRENT_DATE
- Tree – Information TheoryORM
- Git 系列之「Git 的誕生」Git
- git pull如果提示merge衝突,先進行git reset --hard origin/master 後再git pullGitAST
- VS Code 提示 '未找到Git.請安裝Git,或在“git.path”設定中配置'Git
- git學習之git reflog和git cherry-pickGit
- CF1843E Tracking Segments
- Git基礎命令之git rebase命令Git
- [Information Security] What is WEPORM
- Git中級使用者的25個提示Git
- git操作之四:git branch(本地倉庫)Git
- 聊聊HotSpot VM的Native Memory TrackingHotSpot
- sqlserver Change Data Capture&Change TrackingSQLServerAPT
- Linux虛擬機器配置IP時提示:determining ip information for ip xxx.xxx.xxx.xxx address is alreadyLinux虛擬機ORM
- Avoided redundant navigation to current location: "/users"IDENavigation
- MySQL中的CURRENT_TIMESTAMPMySql
- ON UPDATE CURRENT_TIMESTAMP請慎用
- 關於git提示“warning: LF will be replaced by CRLF”終極解答Git
- 7、Git之Github操作Github
- 5、Git之版本號Git
- System Volume Information是什麼檔案 System Volume Information可以刪除嗎ORM
- 聯想筆記本win10系統開機提示LCFC Debug Page Information的解決方法筆記Win10ORM
- AppLink對51Tracking的整合方式APP
- AUTHID CURRENT_USER的注意點
- Vue, Avoided redundant navigation to current location: "/login".VueIDENavigation
- gc current/cr block busy等待事件GCBloC事件
- 解決gc current request等待事件GC事件
- information_schema的結構ORM