java - "Cannot read git config" when configuring Git default remote and merge -
i´m using egit eclipse sync dev environment 2 different computer. have slight problem 1 created project , pushed remote git repo (which happens github).
now searched web , found pointers indicating have add key/value pairs myself config file. keys branch.master.merge , branch.master.remote
my config looks this:
[core] repositoryformatversion = 0 filemode = false logallrefupdates = true autocrlf = false [remote "origin"] url = https://dan-lind@github.com/dan-lind/prime-sweet.git fetch = refs/heads/master:refs/remotes/origin/master
the info found add follwing lines:
branch.master.merge = refs/heads/master branch.master.remote = origin
question: supposed put them? tried putting them both under core , under remote sections, fire eclipse error message saying git config file cannot read. if remove 2 lines again, fine (except still have no defaults , cannot use pull)
any suggestions? cheers!
the branch.master
translates section called [branch "master"]
. get:
[branch "master"] remote = origin merge = refs/heads/master
another option use config command of git:
git config branch.master.remote origin git config branch.master.merge refs/heads/master
Comments
Post a Comment