Hacker News new | ask | show | jobs
by RyJones 1970 days ago
I use the hub[0] cli tool to manually specify the branch when I create a PR.

[0]: https://hub.github.com/hub-pull-request.1.html

2 comments

For me, I hit Command+Shift+P in VS Code, choose Open pull request, then hit Enter. As easy as it gets.

https://marketplace.visualstudio.com/items?itemName=GitHub.v...

...or have even more PR functionality with https://marketplace.visualstudio.com/items?itemName=CodeStre...
Git aliases to the rescue:

    pr !open "$(git remote -v | grep origin | grep push | cut -f 2 | cut -d " " -f 1 | sed -e "s|git@\(.*\):\(.*\).git|https://\1/\2|")/pull/new/$(git rev-parse --abbrev-ref HEAD)"