When pushing a new branch (
git push --set-upstream origin branch-name) to GitHub, they'll send back a url to create a new PR at:
Enumerating objects: 19, done.
Counting objects: 100% (19/19), done.
Delta compression using up to 4 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 1.54 KiB | 1.54 MiB/s, done.
Total 10 (delta 7), reused 0 (delta 0)
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
remote: Create a pull request for 'branch-name' on GitHub by visiting:
* [new branch] branch-name -> branch-name
Branch 'branch-name' set up to track remote branch 'branch-name' from 'origin'.
On the CLI I use that url a lot to easily get to that page. It would be great if I can easily get the
https://github.com/.../pull/new/branch-name in Sublime Merge after pushing a new branch.
I can imagine it is a bit nasty as it is GitHub specific and not in a standard format. Maybe a solution would be to show any url in the output, except if that url is the .git of the repo itself.