I am new to Git, and I'm confused.
Here's an example:
prj
in my office.home
) and replace this image with another one with same name.git diff master origin/home
, which shows a new node added for that image. However, when I run git merge origin/home
, the image I added at home can not be added to my local master.Where did I do wrong? How can I do something just like SVN update?
On your office computer - don't delete the image. Reset your local changes to the image file, then do the pull. You should see it's content update.
If you still don't see it update, delete the old image, commit the deletion, then try adding the new image again. Sometimes git is weird about replacing files that have the same name.