Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6183433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:21:53+00:00 2026-05-24T01:21:53+00:00

I´m using EGit with eclipse to sync my dev environment to two different computer.

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:21:54+00:00Added an answer on May 24, 2026 at 1:21 am

    The branch.master translates to a section called [branch "master"]. So you get:

    [branch "master"]
    remote = origin
    merge = refs/heads/master
    

    Another option is to use the config command of git:

    git config branch.master.remote origin
    git config branch.master.merge refs/heads/master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Eclipse Helios and EGit 0.11.3. I have a project where different branches
For egit users, which version of eclipse are you using that actually works with
Hiho, I'm using the egit plugin for eclipse. What does this Symbol * mean
I am using EGit in eclipse to provide Git support for an Android project
I'm using git via the Eclipse egit plugin. I am new at using git
I have looked at https://github.com/debasishg/sjson and using EGit I was not able to import
there. I am using EGit to import a project into Eclipse under Ubuntu 10.10.
My problem is with using github and Egit. Egit fetched all of my repository
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.