Ad

Pushing Git Repo Issues

- 1 answer

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.

Ad

Answer

First run: git pull origin main

Then run: git push origin main

Ad
source: stackoverflow.com
Ad