Git: how do you merge with remote repo?

Posted by Marco on Stack Overflow See other posts from Stack Overflow or by Marco
Published on 2010-03-31T02:58:36Z Indexed on 2010/03/31 3:03 UTC
Read the original article Hit count: 270

Filed under:

Please help me understand how git works.

I clone my remote repository on two different machines.

I edit the same file on both machines.

I successfully commit and push the update from the first machine to the remote repository. I then try to push the update on the second machine, but get an error:

! [rejected]        master -> master (non-fast-forward)

I understand why I received the error. How can I merge my changes into the remote repo? Do I need to pull the remote repo first?

© Stack Overflow or respective owner

Related posts about git