|
Re: New to Git and EGit, a few questions [message #646307 is a reply to message #646266] |
Thu, 23 December 2010 04:37  |
Eclipse User |
|
|
|
Fetch only updates remote tracking branches and does not modify your local branches. If you want to update local branches with changes from an upstream repository either run fetch then merge or rebase or use pull which is fetch + merge.
Your local master branch doesn't really matter, it's not special in any regards, it's just a local branch which is created automatically after clone for your convenience so that you don't need to first create a local branch before you can start doing commits. So you can directly push from your local branch to the remote branch you are shooting for (if you have write access to upstream). If you don't use the force flag push will reject non-fast-forward pushes [1]. Push does not attempt to merge on the receiving end of the transport. So usually you then fetch the new changes from upstream using fetch and then either merge or rebase your work with these changes and then push the result of this operation again (can be done using pull or pull --rebase, the latter is not yet supported by egit).
I would recommend to update to egit 0.10 as 0.9 didn't show errors occurring on push operation.
[1] see "Notes about fast-forwards" in http://www.kernel.org/pub/software/scm/git/docs/git-push.htm l
|
|
|
Powered by
FUDForum. Page generated in 0.02537 seconds