What is the correct git config for working with GitHub pull requests?

前端 未结 4 2310
情话喂你
情话喂你 2021-02-18 21:44

I\'m aware of How can I check out a GitHub pull request?

While adding fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to .git/config does al

4条回答
  •  一生所求
    2021-02-18 22:21

    One correct way is with hub! :)

    $ brew install hub
    $ hub checkout https://github.com/github/hub/pull/123
    
    ...
    
    $ hub pull
    Already up-to-date.
    

    It has extra utilities for working with Github pull requests, such as

    hub pull-request
    

提交回复
热议问题