Github pull request link when pushing branch

前端 未结 2 1721
时光取名叫无心
时光取名叫无心 2021-02-08 02:48

When I pushed a branch to my remote on github it was giving me the message:

remote: Create a pull request for \'branch-name\' on GitHub by visiting:
remote:              


        
相关标签:
2条回答
  • 2021-02-08 03:44

    I usually just check out a new branch, and then push the new branch up. Get the URL from the message, and use it create a PR for the new branch. Then, I delete the old one (both local, and remote).

    0 讨论(0)
  • 2021-02-08 03:45

    This is fairly recent (sept. 2018) and is described as:

    When you push a new branch to GitHub from the command line, you’ll now notice a URL within the output which you can copy in order to quickly open a new pull request.

    So this is when you are pushing a new branch, not when you are pushing new commits to an existing branch.

    0 讨论(0)
提交回复
热议问题