Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github pull request link when pushing branch

Tags:

git

github

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:      https://github.com/repo/pull/new/branch-name

which was really nice to have that clickable link. It is no longer giving me that link, how can I get it back?

like image 281
tgreen Avatar asked Sep 17 '18 20:09

tgreen


2 Answers

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.

https://user-images.githubusercontent.com/45141/45300188-f6865080-b50d-11e8-9a82-866c9d7e9546.png

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

like image 95
VonC Avatar answered Oct 09 '22 20:10

VonC


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).

like image 27
jenlampton Avatar answered Oct 09 '22 18:10

jenlampton