I´m using EGit with eclipse to sync my dev environment to two different computer. I have a slight problem with the one where I originally created by project and pushed it to my remote git repo (which happens to be github).
Now I searched the web and found some pointers indicating that I have to add to key/value pairs myself to the config file. The keys are branch.master.merge and branch.master.remote
My config now looks like 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 I found was to add the follwing lines:
branch.master.merge = refs/heads/master
branch.master.remote = origin
Question: Where am I supposed to put them? I tried putting them both under the core and under the remote sections, but as soon as I fire up Eclipse I get an error message saying that the git config file cannot be read. If I remove the two lines again, everything is fine (except that I still have no defaults and cannot use pull)
Any suggestions?
Cheers!
The
branch.mastertranslates to a section called[branch "master"]. So you get:Another option is to use the config command of git: