Error : cannot push non-fastforwardable reference


When I tried push the commit to my github repository, I got this error message, “cannot push non-fastforwardable reference”. Please someone let me know how to solve this!

Btw, I am using 2 different mac.


If your changes are not fast-forwardable from the remote’s branch, then that means that somebody else has updated the repository’s branch. You need to fetch from the remote, merge with the remote’s branch, and then you can push.

1 Like


Thank you so much!