Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » RefSpec question Git vs. Egit (RefSpec question Git vs. Egit)
RefSpec question Git vs. Egit [message #1001503] Wed, 16 January 2013 15:50 Go to previous message
Steve Coffman is currently offline Steve Coffman
Messages: 1
Registered: January 2013
Junior Member
I'm used to git at the command line, and I'm trying to translate my workflow into Egit.

However, there appear to be some major differences that are confusing me.

The biggest appears to be differences in Fetch and Push refspecs.

In Git, when I track a remote branch branch, I can push and pull directly:

  • git checkout --track -b refactored origin/refactored
  • make changes
  • git commit -am "Made some changes"
  • git push origin refactored

After this, my .git/config files are set to:
[branch "refactored"]
	remote = origin
	merge = refs/heads/DEV
	rebase = true


In EGit, in order to push and pull, after I clone and select the "refactored" branch I need to:

  • Right Click on project name, select Team -> Remote -> Configure Fetch
  • Ref mappings should be "+refs/heads/*:refs/remotes/origin/*" (no quotes) and then Save

  • Right Click on project name, select Team -> Remote -> Configure Pull
  • Ref mappings should be "+refs/heads/*:refs/remotes/origin/*" (no quotes) and then save


My EGit .git/config usually ends up looking like this:
[branch "refactored"]
	remote = origin
	merge = refs/remotes/origin/refactored


This seems like maybe I'm doing things wrong. Any ideas? Thanks for any illumination.
-Steve
 
Read Message
Read Message
Previous Topic:How to on EGit
Next Topic:Equivalent of `git add -A` and `git show` in jGit
Goto Forum:
  


Current Time: Sun May 19 19:24:58 EDT 2013

Powered by FUDForum. Page generated in 0.01807 seconds