title: Sync two remote git repo with restricted history information
body: <p>I have two git repo, one of which is called primary is connected to our developers and all work committed their first. The second repo is called secondary which another team connects to it where it uses that repo to get the last code changes.</p>
  <p>I want to allow the primary team to be able to push to the secondary repo, but I don't want the history of the primary to be visible to the secondary team.</p>
  <p>what I tried is following</p>
  <ol>
  <li>create new repo at the secondary</li>
  <li>git clone --depth=1 /url/primary</li>
  <li>git remote add /url/secondary</li>
  <li>git push -u /secondary</li>
  </ol>
  <p>I am getting the following error
  <code>error: src refspec master does not match any.</code></p>
  <p>If I make the clone with full history, the push is fine.</p>
  <p>I am not sure if this scenario is achievable, any suggestions?</p>
  <p>Thank!</p>