title: Github Two different account - Handle Authentication
body: <p>I have two different github account, one personal and another of my company.</p>
  
  <p>I am using SSH key for my work account which is set globally and username and password for my personal account which is set locally for particular repo. </p>
  
  <p>I have no issue in pulling and pushing changes to either account. it works perfectly find. </p>
  
  <blockquote>
    <p>however from my personal account when I am trying to deploy my code to <code>github</code> pages it tries to authenticate using wrong username (work account)</p>
  </blockquote>
  
  <p>Following is the error. </p>
  
  <p><strong>Gaurang033</strong> - Personal account </p>
  
  <p><strong>gaurang_work</strong> - Work account </p>
  
  <pre><code>▶ rm -rf node_modules/gh-pages/.cache; npm run deploy
  
  &gt; most-popular@0.1.0 predeploy /Users/gaurang.shah/gitRepo/popular-movies
  &gt; npm run build
  
  
  &gt; most-popular@0.1.0 build /Users/gaurang.shah/gitRepo/popular-movies
  &gt; react-scripts build
  
  Creating an optimized production build...
  Compiled successfully.
  
  File sizes after gzip:
  
    56.16 KB  build/static/js/2.8360eafd.chunk.js
    1.94 KB   build/static/js/main.867a2b42.chunk.js
    785 B     build/static/js/runtime~main.d936f90a.js
    397 B     build/static/css/main.6f7911ff.chunk.css
  
  The project was built assuming it is hosted at /Gaurang033/popular-movies/.
  You can control this with the homepage field in your package.json.
  
  The build folder is ready to be deployed.
  
  Find out more about deployment here:
  
  
  &gt; most-popular@0.1.0 deploy /Users/gaurang.shah/gitRepo/popular-movies
  &gt; gh-pages -d build
  
  remote: Permission to Gaurang033/popular-movies.git denied to gaurang_work.
  fatal: unable to access 'https://github.com/Gaurang033/popular-movies.git/': The requested URL returned error: 403
  
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! most-popular@0.1.0 deploy: `gh-pages -d build`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the most-popular@0.1.0 deploy script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/gaurang.shah/.npm/_logs/2019-10-17T15_41_17_131Z-debug.log
  </code></pre>
  
  <p>I could not use seperate <code>SSH Config</code> as <code>HostName</code> is same for both <code>github.com</code></p>