title: forking a public branch in private repo
body: <p>I have the below private repo and public repo.</p>
  <pre><code>git@github.com:Software/AutoCock.git -&gt; Private 
  git@github.com:Software/PublicProject.git -&gt; Public 
  </code></pre>
  <p>My private repo already have many files. I would like to fork one more public branch and make my private changes, visible only to all those who has access to my private repo.
  I wanted to pull the all the latest changes from public branch frequently as well.
  Note: I don't have plans to merge all my private repo changes to public branch.</p>
  <p>I followed this thread
  <a href="https://stackoverflow.com/questions/47334564/how-to-have-a-public-private-git-repository-with-pull-request-among-the-two">How to have a public/private git repository with pull request among the two</a></p>
  <p>so I tried these commands,</p>
  <pre><code>git clone --bare git@github.com:Software/PublicProject.git
  cd PublicProject.git
  git push --mirror git@github.com:Software/AutoCock.git
  </code></pre>
  <p>but got the below error</p>
  <pre><code>Counting objects: 37721, done.
  Delta compression using up to 128 threads.
  Compressing objects: 100% (8155/8155), done.
  Connection reset by 140.82.114.4 port 220 KiB | 1024 bytes/s
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  </code></pre>
  <p>Need a help, getting familiar on git, so what is the best way I can incorporate this ?</p>