|Help in understanding push/fetch workflow [message #817270]
||Fri, 09 March 2012 16:50
| Dennis Schieferdecker
Registered: July 2009
I hope someone can help me in understanding the egit workflow when pushing/fetching between two repositories. Maybe I am just doing something wrong, but the results I get seem to be quite unintuitive to me.|
My setup is as follows:
I have PC A with a git repository.
I have PC B with a clone of the repository and a remote set to PC A (via ssh).
On both PCs, I have the same branch checked out in Eclipse, let's say <master>.
Now, I modify/add files on PC B and perform a push upstream (to PC A). Then, when I open Eclipse on PC A, I see the previous state, still labeled as <master>,<head>. The files I modified on PC B are in their old state but marked as staged - so that a commit would revert the changes pushed by PC B. To actually get the changes pushed from PC B, I have to checkout <master> or <head> again.
What I don't understand is, why when I open Eclipse on PC A, the state looks as it does. I would expect it to either be in the state pushed by PC B; or in the previous state but the changed files only marked as changed but not staged; or in the previous state but the state not labelled as <master>,<head> but as the previous commit.
Powered by FUDForum
. Page generated in 0.01931 seconds