0

I've done some research about it, but couldn't be sure of what is the best option in this case specific.

But here's my problem: I had to undo a lot of commits in a project, that were already on a remote branch. I did some git revert on local branch until the point that i needed, created the changes that i wanted, and commited again, but got this message:

 ! [rejected]        main -> main (non-fast-forward)
thub.com/admindatafinder/df.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.

I looked into fast forwarding, and some other possibilities, but i don't know what would be the most fitting for this case.

  • https://stackoverflow.com/search?q=%5Bgit%5D+hint%3A+Updates+were+rejected+because+the+tip+of+your+current+branch+is+behind – phd Feb 18 '22 at 14:37

0 Answers0