【JAVA】Eclipse中使用git進行pull遠程代碼

來源:互聯網
上載者:User

標籤:pull   class   idp   red   修改   roi   錯誤碼   知識   tool   

當使用eclipse或者MyEclipse進行pull遠程代碼的時候,或者github的代碼的時候報如下錯誤碼;

代表我們沒有配置我們的Git地址,這裡我教大家配置一下。首先下面是錯誤碼:

The current branch is not configured for pullNo value for key branch.master.merge found in configuration

 

 
  • 1

解決方案:

  1. 在我們本地工程目錄找到config檔案(如我的是E:\david\xiaobing.git);

  2. 修改config檔案內容為:

[core]    repositoryformatversion = 0    filemode = false    logallrefupdates = true    [branch "master"]         remote = origin         merge = refs/heads/master     [remote "origin"]         url = https://github.com/QQ986945193/DavidAndroidProjectTools.git                (修改為自己的url,然後去掉此括弧中的內容即可)        fetch = +refs/heads/*:refs/remotes/origin/*

 

  • 1
  • 2
  1. 最後再執行pull方法,發現工作ok了

【JAVA】Eclipse中使用git進行pull遠程代碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.