RefSpec question Git vs. Egit [message #1001503] |
Wed, 16 January 2013 20:50 |
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02997 seconds