title: How to Access Github API using personal access tokens instead of a password using shell script
body: <p>how is it going?</p>
  <p>So I used a bash script to create a remote repository using a password to access a endpoint like this:</p>
  <pre><code>NEWVAR=&quot;{\&quot;name\&quot;:\&quot;$githubrepo\&quot;,\&quot;private\&quot;:\&quot;true\&quot;}&quot;
  curl -u $USERNAME https://api.github.com/user/repos -d &quot;$NEWVAR&quot;
  </code></pre>
  <p>However, GitHub is going to not allow developers to access endpoints using passwords anymore. So my question is how do I create a remote repository using a personal access token?</p>