I am just starting with git but I have a seemingly working remote 
repository. However, a recent problem has made it clear I do not understand 
what I have. I followed some cookbook instructions for setting up a bare 
repository which worked but left me without a good understand of what I 
did. My setup consists of a Linus repository (bare) into which I imported 
an Eclipse project. I then cloned that repository on Windows and got a 
working Eclipse project using Egit. After making some changes I did a 
commit on Windows and pushed them upstream. I did not receive any feedback 
(positive or negative) from that operation so I assumed that it worked. I 
then went to my Linux server where I maintain a build directory which was 
also a clone from the bare repository. I did a pull and it seemed like some 
files were updated but when I looked at them they were not the latest 
version. I then did a 'fetch' followed by a 'reset' and that worked. Among 
those things that are not clear is where does the bare repository get the 
source code from when a pull or fetch is requested, as there is nothing 
recognizable as source in that directory (that is the part that seems like 
magic)? What is the difference between 'pull' and 'fetch' such that one 
worked and the other didn't and which is the correct way to maintain the 
source in my build directory (as part of my build script)? The build 
directory is not used for changing source it is only for running builds so 
no commits will ever be done there. I maintain the code on Windows, then 
want to push the changes upstream to the remote Linux repository and 
finally do builds with that code in the build directory. Some clarification 
of what is happening would be very helpful. TIA.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to