Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p><em>Is it possible to have a private branch on a public repo?</em></p> </blockquote> <p>On GitHub, your repository is either public or private; you cannot selectively "privatize" just a branch.</p> <blockquote> <p><em>Can I fork my own public repo into my own private branch/fork?</em></p> </blockquote> <p>You can clone your public repo to your local machine, branch as needed, and simply not push your "private" branches upstream (by specifying <em>which</em> branch to push to origin: <code>git push origin master</code> or <code>git push origin branch-i-want-to-be-public:master</code>).</p> <blockquote> <p><em>Which is the best way forward/how should I proceed?</em></p> </blockquote> <p>In order to take advantage of GitHub for both your public and private development, I would suggest forking your public branch within GitHub, changing the settings of the new fork to "Private", and then cloning the private version down to your local machine. When you're ready to make changes public, push everything up to your private fork on GitHub and then use <a href="http://help.github.com/send-pull-requests/" rel="noreferrer"><strong>pull requests</strong></a> to selectively copy branches to the public repo.</p> <p>To make a repository private on GitHub, you must have an upgraded <em>(paid)</em> account. If you're only rocking the free account, you can still use the first process I suggested &mdash; <em>clone public to local machine, branch, and push specific "public" branches to origin</em> &mdash; without needing a private repo.</p> <p>If you have a paid GitHub account, or are using another service that offers public and private forks and pull requests (such as <a href="http://bitbucket.org/" rel="noreferrer">BitBucket</a>), then you can use either of the above approaches to make your code public.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload