-1

I tried push to github and get this error : How can i fix it ? error: enter image description here

alsayadi
  • 17
  • 1
  • 4
  • https://stackoverflow.com/search?q=%5Bgit%5D+hint%3A+Updates+were+rejected+because+a+pushed+branch+tip+is+behind+its+remote – phd Apr 15 '22 at 14:00

1 Answers1

2

I think it's just because your branch on the remote repo (on GitHub) has commits that you don't have locally.

It's written in the error message (hint:)

What you should try to do is to first get what you have on otn repo with a git pull and resolve conflicts (if there are any) to then do the push.

Look at this post to understand better ;)

Tykok
  • 51
  • 5