How do I update a GitHub forked repository?

前端 未结 23 2789
借酒劲吻你
借酒劲吻你 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 12:01

    Android Studio now has learned to work with GitHub fork repositories (you don't even have to add "upstream" remote repository by console command).

    Open menu VCSGit

    And pay attention to the two last popup menu items:

    • Rebase my GitHub fork

    • Create Pull Request

    Try them. I use the first one to synchronize my local repository. Anyway the branches from the parent remote repository ("upstream") will be accessible in Android Studio after you click "Rebase my GitHub fork", and you will be able to operate with them easily.

    (I use Android Studio 3.0 with "Git integration" and "GitHub" plugins.)

提交回复
热议问题