Reputation: 4750
I'm new to Git version controlling. I use EGit plugin with eclipse which again I haven't used before.
My question is, I have created a project (on PC1) in eclipse that is connected with a remote repo which is hosted on Github. I can commit and push them to the remote repo using EGit plugin via eclipse.
If I work on the same remote repo from another computer, say PC2 and i have made some changes to the repo from PC2, how can I sync my code on PC1 with the remote repo and see the changes visually?
if I go to Team -> i can see Synchronize Workspace but that is not what I want and again I don't understand the purpose of it as well (have attached a pic)?
If I goto Team -> Merge.. below is what I see. It doesn't give me the option to merge with the remote repository and see?
Upvotes: 2
Views: 1873
Reputation: 4750
Ok so I found the answer. you have to add the following line to the config file under .git
add following to the [remote "origin"] section:
fetch = +refs/heads/:refs/remotes/origin/
Thanks to the answer in this post: EGit: cannot push, cannot pull
Upvotes: 1