0

I need some help. I want to push some files on GitHub remote depository and I get this error:

flori@LAPTOP-DGOOOTH0 MINGW64 ~/Desktop/CURS/CodeFactory/F21-GIT-pairPartnerSurname-pairLeaderSurname (main)
$ git push -u origin main
****To https://github.com/AlinaAPP/F21-GIT-pairLeaderSurname-pairPartnerSurname-local.git
 ! [rejected]        main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/AlinaAPP/F21-GIT-pairLeaderSurname-pairPartnerSurname-local.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details**.**
Yousha Aleayoub
  • 4,532
  • 4
  • 53
  • 64
Alina
  • 1
  • 1
    Hi, welcome to StackOverflow! have you tried to pull first? maybe there are some changes in remote(Github) repo that you don't have it yet. – Yousha Aleayoub Sep 06 '21 at 15:51
  • 1
    Please read the error message, if it's unclear google/search for an explanation of what it means. – AD7six Sep 06 '21 at 15:53
  • https://stackoverflow.com/search?q=%5Bgit%5D+hint%3A+Updates+were+rejected+because+the+tip+of+your+current+branch+is+behind – phd Sep 06 '21 at 16:20

0 Answers0