title: Jenkins Pipeline Git Push
body: <p>Is there as way to have a stage like so in a Jenkinsfile:</p>
  
  <pre><code>stage('Create Branch &amp; Push Branch') {
              steps {
                  script {
                      sh "git checkout -b release/${NEW_TAG}"
                      sh "git push --set-upstream
                  }
              }
      }
  </code></pre>
  
  <p>Currently this leads to:</p>
  
  <blockquote>
    <ul>
    <li>git push --set-upstream origin release/v1.0.3
    fatal: could not read Username for '<a href="https://github.com" rel="noreferrer">https://github.com</a>': No such device or address
    script returned exit code 128</li>
    </ul>
  </blockquote>
  
  <p>The repository was originally cloned earlier in the pipeline using:</p>
  
  <pre><code>checkout poll: false, scm: [$class: 'GitSCM', branches: [[name: 'develop']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout'], [$class: 'CleanCheckout'], [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'ci-github', url: 'https://github.com/my-org/my-repo.git']]]
  </code></pre>
  
  <p>That part works ok (the clone), presumably because I can supply this step with the jenkins credential id for github. </p>
  
  <p>Is there a way for me to do the same to push back to a repo that was cloned earlier in the build?</p>