title: How Can I Update My Github Pages Website?
body: <p>I have my github website deployed to a.github.io. Now, I have made some changes locally and want to push changes but I am unable to do so. This is what the settings of my repo says in the Github Pages section:</p>
  
  <p><a href="https://i.stack.imgur.com/d18Gp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d18Gp.png" alt="enter image description here"></a></p>
  
  <p>In my repo, I can see that the commits are being shown. However, the website is still not updated. If I run it locally, i see the changes but not on the actual website. Note that the original account where website it hosted is also different than the one through which I am making commits. </p>
  
  <p>When I go to my local repo through terminal and run</p>
  
  <pre><code>git config --list
  </code></pre>
  
  <p>Instead of my username and email, I get two different emails of my two different accounts. The first user.name is basically my email for where I am hosting the website. The user.email is the email through which I am pushing changes.</p>
  
  <p>user.name= ab@hotmail.com
  user.email=ab@gmail.com</p>
  
  <p>This is how I am trying to update the website (the pushing worked last time but it's not even working rn):</p>
  
  <pre><code>git add *
  git commit -m "added new picture"
  </code></pre>
  
  <p>Results:</p>
  
  <pre><code>On branch master
  Your branch is ahead of 'origin/master' by 1 commit.
    (use "git push" to publish your local commits)
  
  Changes not staged for commit:
      deleted:    favicon.ico
      deleted:    logo192.png
      deleted:    logo512.png
      deleted:    z&lt;
  
  no changes added to commit
  </code></pre>
  
  <pre><code>git push
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code> ! [rejected]          master -&gt; master (fetch first)
  error: failed to push some refs to 'https://github.com/aa
  hint: Updates were rejected because the remote contains work that you do
  hint: not have locally. This is usually caused by another repository pushing
  hint: to the same ref. You may want to first integrate the remote changes
  hint: (e.g., 'git pull ...') before pushing again.
  hint: See the 'Note about fast-forwards' in 'git push --help' for details.
  </code></pre>
  
  <p>and then <code>npm run deploy</code></p>