-1
Briefly, I’ve tried to give git push
, git pull
, accept the changes, I’ve given commit
, git push --set-upstream origin main
, git push -u origin main
.
Error below if you cannot open the image:
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'https://github.com/BrenoPierin/Edux_ReactNative.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.
Use
git pull origin main
– Valdeir Psr