title: Tag a Repo from a Jenkins Bash Script
body: <p>I recently read a post called "Tag a Repo from a Jenkins Workflow Script", my question is pretty similar but using a bash script (not a workflow script)</p>
  
  <p>Inside of my script I have</p>
  
  <pre><code>#!/bin/bash
  
  ...
  
  git push origin :refs/tags/${NEW_TAG}
  git tag -fa $NEW_TAG
  git push origin master --tags
  </code></pre>
  
  <p>but at first "git" command I've got</p>
  
  <pre><code>fatal: could not read Username for 'https://github.com': No such device or address
  </code></pre>
  
  <p>Thank you for your help !</p>