原文:Git出現There is no tracking information for the current branch提示的解決辦法

參考:https: blog.csdn.net sinat article details 在執行git pull的時候,提示當前branch沒有跟蹤信息: There is no tracking information for the current branch 對於這種情況有兩種解決辦法,就比如說要操作master吧,一種是直接指定遠程master: git pull origin ma ...

2019-10-14 14:31 0 610 推薦指數:

查看詳情

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
[git] your branch is ahead of ... 解決辦法

出現該問題表示在次之前已經有X個commite了,執行命令git reset --hard HEAD~X解決其中X表示有多少次提交,此命令的意思是回退到x個commit之前。git reset --hard HEAD~Xgit pull --rebase ...

Wed Sep 25 05:50:00 CST 2019 0 3624
git錯誤 You are not currently on a branch解決辦法

今天使用 git pull和git push 命令,分別報錯: 這是什么意思呢? 說我當前不是在分支上,因此不能 pull 或者 push 然后利用git branch查看一下,發現: 我當前所處的位置是在HEAD detached from bdcfe3d8 ...

Mon Mar 23 01:55:00 CST 2020 0 1379
git branch -a無法顯示遠程分支解決辦法

閱文時長 | 0.2分鍾 字數統計 | 330.4字符 主要內容 | 1、引言&背景 2、git fetch拓展 3、聲明與參考資料 『git branch -a無法顯示遠程分支解決辦法 ...

Sun Dec 26 06:25:00 CST 2021 0 865
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM