I have a public PHP project in a GitHub repo, which contains just one branch (master).
I want to have a separate branch/fork that is private for me (I have paid for private GitHub repos). I would like to be able to merge changes from the private branch/fork to the public repo, and vice versa.
With that in mind, here are my questions:
git remote add public git@github.com:...
public
remote. Make sure you don't accidentally commit private-only code.git fetch public
and then merge them locally and push to your remote private repo (origin
remote).