Search code examples
gitgithubgithub-pages

Pushing Git repo issues


enter image description here

So I keep getting this error when I try to push existing changes onto my github repo. This started after I created a README.md file after I noticed my repo did not have one on the github repo. Does this usually happen? If so whats the best way to fix this. I tried to delete the readme file but I definitely bugged something.


Solution

  • First run: git pull origin main

    Then run: git push origin main