Eclipse使用Git Pull程式碼失敗(已解決)
阿新 • • 發佈:2019-02-13
Eclipse使用Git Pull程式碼失敗
報錯提示: The current branch is not configured for pull No value for key remote.origin
解決方案:
一、找到config檔案
Window->Preferences->Team->Git->Configuration->open
如圖:
二、修改.gitconfig內容
新增以下程式碼
[user]
name = 你的git的使用者名稱
email = 你的git的郵箱
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = 你的專案地址
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
三、執行pull方法
若專案未更新提示:
若已更新則提示: