title: ERROR: Error fetching remote repo 'origin' returned status code 143
body: <p>I have Jenkins ver. 2.32.1 installed on my iMac and I have set up the git repository for my project and provided my credentials as well.
  Note: Repository is private. When the repository is cloned from Windows it works fine but when same repository is cloned from iMac it is giving below log and it is returning status code <code>143</code>.</p>
  <pre><code>Started by user XYZ
  Building in workspace /Users/Shared/Jenkins/Home/workspace/Project1
  &gt; git rev-parse --is-inside-work-tree # timeout=10
  Fetching changes from the remote Git repository
  &gt; git config remote.origin.url https://github.com/Organization/Repository # timeout=10
  Fetching upstream changes from https://github.com/Organization/Repository
  &gt; git --version # timeout=10
  using GIT_ASKPASS to set credentials 
  &gt; git fetch --tags --progress https://github.com/Organization/Repository +refs/heads/*:refs/remotes/origin/*
  ERROR: Timeout after 10 minutes
  ERROR: Error fetching remote repo 'origin'
  hudson.plugins.git.GitException: Failed to fetch from https://github.com/Organization/Repository
  at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)
  at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)
  at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)
  at hudson.scm.SCM.checkout(SCM.java:495)
  at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
  at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
  at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
  at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
  at hudson.model.Run.execute(Run.java:1728)
  at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
  at hudson.model.ResourceController.execute(ResourceController.java:98)
  at hudson.model.Executor.run(Executor.java:404)
  Caused by: hudson.plugins.git.GitException: Command &quot;git fetch --tags --progress https://github.com/Organization/Repository +refs/heads/*:refs/remotes/origin/*&quot; returned status code 143:
  stdout: 
  stderr: 
  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1772)
  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1516)
  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:67)
  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:318)
  at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:801)
  ... 11 more
  ERROR: null
  Finished: FAILURE
  </code></pre>
  <p>I have installed the Git plugin, but I am not able to understand why it is not able to get the code from GitHub. Can anyone help me by seeing the logs.</p>