How do I update a GitHub forked repository?

前端 未结 23 3162
借酒劲吻你
借酒劲吻你 2020-11-21 11:07

I recently forked a project and applied several fixes. I then created a pull request which was then accepted.

A few days later another change was made by another con

23条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-21 11:54

    Use these commands (in lucky case)

    git remote -v
    git pull
    git fetch upstream
    git checkout master
    git merge upstream/master --no-ff
    git add .
    git commit -m"Sync with upstream repository."
    git push -v
    

提交回复
热议问题