国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

多種方法解決There is no tracking information for the current branch的錯誤

這篇具有很好參考價值的文章主要介紹了多種方法解決There is no tracking information for the current branch的錯誤。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

1. 復(fù)現(xiàn)錯誤


今天發(fā)布某版本的項目,準(zhǔn)備創(chuàng)建個v0point1分支,后期如果修改該版本,直接在該分支上修改即可。

首先,使用git branch v0point1命令,創(chuàng)建本地分支v0point1,如下圖所示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

其次,使用git checkout v0point1命令,切換到v0point1分支,如下圖所示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

當(dāng)然,我們也可以使用git checkout -b v0point1命令,創(chuàng)建并切換到v0point1分支。

但在v0point1分支上,使用git pull命令拉取遠(yuǎn)程代碼,卻報出如下提示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

There is no tracking information for the current branch.

2. 分析錯誤


There is no tracking information for the current branch.,這句話翻譯成中文就是當(dāng)前分支沒有跟蹤信息

當(dāng)前分支是指遠(yuǎn)程分支。

換句話說,我在本地創(chuàng)建了v0point1分支,并沒有關(guān)聯(lián)遠(yuǎn)程倉庫的v0point1分支,可能有如下兩種情況:

  1. 遠(yuǎn)程倉庫本身就沒有v0point1分支。

  2. 遠(yuǎn)程存在v0point1分支,但我沒有關(guān)聯(lián)遠(yuǎn)程倉庫。

因而,針對這兩種情況,有如下兩種解決方法。

3. 解決錯誤


既然本地分支沒有關(guān)聯(lián)遠(yuǎn)程分支,那就按如下兩種方式解決該錯誤。

3.1 遠(yuǎn)程有分支


如下圖所示,遠(yuǎn)程存在v0point1分支,如下圖所示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

使用git status命令,查看本地分支是否為v0point1,如下圖所示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

從圖中可知,本地分支已經(jīng)是v0point1,我們使用如下命令,合并遠(yuǎn)程分支:

  
  git branch --set-upstream-to=origin/遠(yuǎn)程分支名 本地分支名

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

Branch 'v0point1' set up to track remote branch 'v0point1' from 'origin'.這句話可知,本地v0point1分支已關(guān)聯(lián)遠(yuǎn)程分支了。

3.2 遠(yuǎn)程無分支


如下圖所示,我把遠(yuǎn)程分支刪了,只有本地有分支,推送到遠(yuǎn)程、并與遠(yuǎn)程分支進(jìn)行關(guān)聯(lián)。

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

依舊使用git status命令,查看本地分支是否為v0point1,如下圖所示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

從圖中可知,本地分支已經(jīng)是v0point1,我們使用如下命令,將本地分支提交到遠(yuǎn)程倉庫:


git push origin 本地分支名

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

To create a merge request for v0point1這句話可以看到,已經(jīng)創(chuàng)建了遠(yuǎn)程分支。

使用如下命令,


git branch --set-upstream-to=origin/遠(yuǎn)程分支名

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

Branch 'v0point1' set up to track remote branch 'v0point1' from 'origin'.這句話可知,本地v0point1分支已關(guān)聯(lián)遠(yuǎn)程分支了。

為了驗證本地分支是否關(guān)聯(lián)遠(yuǎn)程分支,檢查gitlab上是否存在v0point1分支,如下圖所示:

多種方法解決There is no tracking information for the current branch的錯誤,免費專欄,git,github,linux,后端,gitlab

gitlab上已存在v0point1分支。

4. 總結(jié)


如果以上方法,無法解決你的問題,歡迎在評論區(qū)留言。文章來源地址http://www.zghlxwxcb.cn/news/detail-706470.html

到了這里,關(guān)于多種方法解決There is no tracking information for the current branch的錯誤的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Mybatis報錯:There is no getter for property named ‘xxx‘ in ‘class xxx 的解決辦法

    在mybatis中遇到這樣的報錯,There is no getter for property named ‘xxx’ in \\\'class xxx ,這篇博客給出了解決辦法。 There is no getter for property named ‘username’ in ‘class com.zxy.pojo.User’ 最先想著是不是User實體類沒有寫 Getter and Setter 方法,可是發(fā)現(xiàn)寫了。 發(fā)現(xiàn)數(shù)據(jù)庫表字段 category_id 與實體

    2024年02月03日
    瀏覽(20)
  • There is no getter for property named ‘xxx‘ in ‘class java.lang.xxxx‘解決辦法

    There is no getter for property named ‘xxx‘ in ‘class java.lang.xxxx‘解決辦法

    報錯最前面 內(nèi)容 報錯原因: 使用了自定義SQL,可能含有特殊的函數(shù)或者復(fù)雜的語法,因而不被JSqlParser(SQL解析器)所支持(無法添加租戶id之類的字段),以致拋出了JSQLParserException。 解決方法: Failed to process, please exclude the tableName or statementId 翻譯過來就是:處理失敗,請將表名

    2024年02月04日
    瀏覽(34)
  • maven打包失敗:the pom for XXX is missing, no dependency information available 問題解決

    maven打包失?。簍he pom for XXX is missing, no dependency information available 問題解決

    問題描述:springcloud項目,idea打包pacake、compile時報錯,THE POM for ... is missing,no dependency information available,此時清理緩存,和clean之后還是會報這個錯。 查詢報錯信息是因為pom文件丟失才會報這個錯,但是項目中pom文件是存在的,并非丟失。 由于是多項目管理,項目是有相互依

    2024年02月11日
    瀏覽(22)
  • 記錄mybatis插件奇怪報錯問題There is no getter for property named ‘delegate‘ in ‘class com.sun.proxy.$Proxy的排查

    記錄mybatis插件奇怪報錯問題There is no getter for property named ‘delegate‘ in ‘class com.sun.proxy.$Proxy的排查

    一、背景描述 項目要求update/delete必須要有where條件(因為出了一次生產(chǎn)上把一張表的數(shù)據(jù)全表刪除的嚴(yán)重生產(chǎn)事故),并且要打印出where中的條件,所以考慮用mybatis攔截器處理 mybatis攔截器實現(xiàn)原理簡述 在Mybatis中,攔截器可攔截如上圖中四種相關(guān)操作類的操作方法。通過閱讀源

    2024年01月16日
    瀏覽(24)
  • 【論文閱讀】Know Your Surroundings: Exploiting Scene Information for Object Tracking

    【論文閱讀】Know Your Surroundings: Exploiting Scene Information for Object Tracking

    發(fā)表時間 :2020 期刊會議 :ECCV 方向分類 : 目標(biāo)跟蹤 做了什么: 本文提出了一個能夠在視頻序列中傳播目標(biāo)附近場景信息的跟蹤結(jié)構(gòu),這種場景信息被用來實現(xiàn)提高目標(biāo)預(yù)測的場景感知能力。 解決了什么問題: 已存在的跟蹤器只依靠外觀來跟蹤,沒有利用任何周圍場景中

    2024年04月23日
    瀏覽(21)
  • Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法

    Ubuntu開機卡在 A start job is runing for wait for Network to be configured (1min 23s / no limit)解決方法

    Ubuntu開機卡在這里遲遲無法開機,要等倒計時完以后才會順利開機。原因可能是系統(tǒng)開機初始化網(wǎng)絡(luò)配置出錯,加上系統(tǒng)默認(rèn)配置有等待時間,導(dǎo)致系統(tǒng)會一直進(jìn)行一些無用的嘗試,直到超過等待時間,這樣無形之中加長了開機的時間。 首先想到的解決方法是修復(fù)配置上的錯

    2024年02月07日
    瀏覽(15)
  • java.sql.SQLException: There is no DataSource named ‘null‘

    當(dāng)配置dataSource后,即使配置文件中已經(jīng)指定了JobStoreTX,實際還是使用LocalDataSourceJobStore。 application.yml配置 修改之處如下:

    2024年02月13日
    瀏覽(22)
  • 解決使用echarts時警告There is a chart instance already initialize on the dom.的兩種方法

    第一種?使用dispose()方法清除實例 第二種?使用 echarts.getInstanceByDom()方法 echarts.getInstanceByDom()這個方法用來獲取Dom容器上的實例,如果存在實例就直接使用已存在的實例進(jìn)行編輯,如果沒有就創(chuàng)建新實例進(jìn)行編輯。

    2024年02月13日
    瀏覽(21)
  • 【報錯】onMounted is called when there is no active component instance too be associated with.

    onMounted is called when there is no active component instance too be associated with.Lifecycle injection APIs can only be used during execytion of setup(), If you are using async setup(),make sure to register lifecycle hooks before the first await statement. 在 import {onMounted } from \\\'vue\\\' 之后使用 使用了Vue3的寫法但并未遵從Vue3的格式 如

    2024年02月12日
    瀏覽(19)
  • 處理 Code:516. Authentication failed: password is incorrect or there is no user with such name.

    處理 Code:516. Authentication failed: password is incorrect or there is no user with such name.

    ?在測試 ClickHouse 分布式表時,創(chuàng)建分布式表成功,但是查詢數(shù)據(jù)時報錯,如下: Received exception from server (version 22.2.2): Code: 516. DB::Exception: Received from 192.168.38.101:9000. DB::Exception: Received from 192.168.38.103:9000. DB::Exception: default: Authentication failed: pass word is incorrect or there is no user w

    2024年02月17日
    瀏覽(25)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包