title: ERROR: Error fetching remote repo 'origin'
body: <p>I have frequent git issue on jenkins while trying to do git fetch</p>
  <p>I'm not sure why it happens on random builds and how we could solve this issue</p>
  <pre><code>using GIT_SSH to set credentials 
   &gt; git fetch --no-tags --progress -- ssh://git@test.git +refs/heads/development:refs/remotes/origin/development +refs/heads/release_*:refs/remotes/origin/release_* +refs/heads/master:refs/remotes/origin/master # timeout=45
  ERROR: Error fetching remote repo 'origin'
  hudson.plugins.git.GitException: Failed to fetch from ssh://git@test.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:998)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1239)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1299)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:155)
      at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:142)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)
  Caused by: hudson.plugins.git.GitException: Command &quot;git fetch --no-tags --progress -- ssh://git@test.git +refs/heads/development:refs/remotes/origin/development +refs/heads/release_*:refs/remotes/origin/release_* +refs/heads/master:refs/remotes/origin/master&quot; returned status code 128:
  stdout: 
  stderr: fatal: git fetch-pack: expected ACK/NAK, got 'ERR upload-pack: not our ref 7e26b93e8ccc53a556747e106033aaf7e80b9fb8'
  fatal: git upload-pack: not our ref 7e26b93e8ccc53a556747e106033aaf7e80b9fb8
  
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:996)
      ... 8 more
  ERROR: Error fetching remote repo 'origin'
  ERROR: Maximum checkout retry attempts reached, aborting
  Finished: FAILURE
  </code></pre>