1

Based on this answer, how can we create a pull request back in public remote?

Additionally, I do not really see a difference copying everything from my private branch to the public branch as the prerequisite is, that I can push to public repo...

Can someone explain?

My motivation for a private repo is, that I want to "fork" some project and maintain my configuration files privately. Can I do better? At the moment it is kind of maintaining two repositories separately.

edit: Thanks for another link. The concepts are similar - the one (I linked) required push privileges to public one, while second is addressing that need by public repo in the middle of other public (for which I possibly have no push privileges) and my private repo.

One question still remains: How to perform private repo to public repo push?

When I tried

git pull private_repo_yourname master
git push origin pull_request_yourname

from the first link, I got "Everything up-to-date" after the git push...

git status resulted in: "nothing to commit, working tree clean", but nothing went to the public repo...

Betlista
  • 10,327
  • 13
  • 69
  • 110
  • To create a pull request : do like you said, just push to the public remote and open a pull request. – LeGEC Jan 14 '20 at 08:30
  • 3
    Does this answer your question? [GitHub pull request from private to public repo possible?](https://stackoverflow.com/questions/8834755/github-pull-request-from-private-to-public-repo-possible) – GoodDeeds Jan 14 '20 at 10:51
  • > "the prerequisite is, that I can push to public repo".. I originally came up with this, in the original answer. But looks like we can do this without having push access to the public repo. The link from GoodDeeds above seems useful: https://stackoverflow.com/a/8834984/90998 – Martin Konicek Jan 16 '20 at 16:31
  • Regarding "Everything up-to-date" - I'm not sure what's going on. One idea: Check that you've set up 'origin' correctly. – Martin Konicek Jan 16 '20 at 16:33
  • @Betlista I posted a detailed answer here: https://stackoverflow.com/questions/8834755/github-pull-request-from-private-to-public-repo-possible?noredirect=1&lq=1 – cb4 Feb 28 '21 at 22:35

0 Answers0