How to sync with a remote Git repository?

前端 未结 5 769
你的背包
你的背包 2020-12-02 06:02

I forked a project on github, made some changes, so far so good.

In the meantime, the repository I forked from changed and I would like to get those changes into my

5条回答
  •  生来不讨喜
    2020-12-02 06:44

    Assuming their updates are on master, and you are on the branch you want to merge the changes into.

    git remote add origin https://github.com//.git
    git pull origin master
    

    Also note that you will then want to push the merge back to your copy of the repository:

    git push origin master
    

提交回复
热议问题