Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github pull request to private repo (from my own branch)

Tags:

git

github

Pretty green with Github but the suggestions I've found so far aren't working.

I'm adding a new feature to a private Github repo. I was instructed to create a branch and submit a pull request.

I added the repo in Github's desktop client and created a new branch, new-feature. I've made all the changes, but when I try to publish them to the branch I get:

 Repository not found!

 'new-feature' doesn’t seem to exist at https://github.com/username/main-name.git/ anymore. You may not have access, or it may have been deleted or renamed.

I can see in my browser that the repo is still at that address, but I suppose I don't have write access.

What's the correct process for getting this to work? Am I supposed to clone the repo into my own account (as a private repo) and submit a pull request from there? I've tried that but can find no way to link this to the main repo, perhaps I've cloned it incorrectly...

like image 592
JVG Avatar asked Oct 18 '15 12:10

JVG


1 Answers

  1. Create a fork of the project on GitHub. Don't worry, your work will be still private.

  2. Push your work to your fork. There, you have write permission.

  3. Create the Pull Request from the branch in your fork.

like image 160
janos Avatar answered Oct 16 '22 18:10

janos