search

Home  >  Q&A  >  body text

github - How to keep in sync with the original project after git clone

After using the git clone command to clone a project on github, how to keep the local code synchronized with the code on the remote github

某草草某草草2793 days ago845

reply all(2)I'll reply

  • 阿神

    阿神2017-05-02 09:39:57

    If you are not a fork project:

    git pull

    That’s it.
    If you fork, add the original project to:

    git remote add usp [主项目地址]

    Then:

    git fetch ups && git merge ups/master

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:39:57

    Thank you for the invitation. The answer above is very detailed. git pull

    reply
    0
  • Cancelreply