How to fix REJECT NON FAST FORWARD error on Github?

Yesterday and for several months I was able to push / lock. But since a few hours ago I canโ€™t commit and go into my own repository anymore. I have 2 new employees and they have the same problem as me.

How to resolve this?

  • tried to pull out before pressing
  • tried to fix, and he always says that it is necessary to resolve a local conflict.
  • Then I resolved the local conflict and accepted everything
  • Again it is said that pressing the button does not work, which causes an annoying error all the time.

Every time he says that they are following the result.

==[IDE]== Feb 7, 2012 11:33:21 AM Pushing git push git@github.com :a/b.git +refs/heads/master:refs/heads/master git push git@github.com :a/b.git +refs/heads/master:refs/heads/master Remote Repository Updates Branch : master Old Id : f3b00695638eec New Id : c79bc1a4650 Result : REJECTED_NONFASTFORWARD Local Repository Updates Branch : origin/master Old Id : f3b00695 New Id : c79bc1a4650e02 Result : NOT_ATTEMPTED ==[IDE]== Feb 7, 2012 11:34:34 AM Pushing finished. 
+4
source share
1 answer

What if you run git status after the third step. I think you need to run git commit after the third step, and then move on to the fourth.

+3
source

Source: https://habr.com/ru/post/1395211/


All Articles