DEV Community

Md Wahiduzzaman Emon
Md Wahiduzzaman Emon

Posted on

Answer: Fatal: Not possible to fast-forward, aborting

Try this. It will work nicely.

git pull origin --rebase

After you get the non-fast-forward error, just do below :

git pull --rebase origin <name-of-the-remote-branch>

This will fetch the remote changes to your local branch. On top of that, it will apply your local commits.

Then

git push origin <name-of-the-remote-branch>

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay