I have this error when i try to type “git push”= ! [rejected] main -> main (fetch first)
error: failed to push some refs to ‘https://github.com/Johnny9874/Test.git’
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: ‘git pull’ before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.
If u know how to solve this that would be great… I cannot use github without resolving this error…
I try to look at other videos but thats always the same issue…
Johnny Ye is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1