could you please help me to solve my issue? Error occurs when I try to pull from "dev" branch. I browsed the solution and it says that I need to "rebase" but it didnt work out foe me.
CT+aohc@MP1GYWQA MINGW64 /c/TCO/source/RAPMD.Web.Frontend (web_feature/TCORAPD-122389-1)
$ git pull origin dev
From https://dev.azure.com/xxxx/xxxx/_git/TCO-FGP-Rapmd
* branch dev -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.
You can follow the following steps:
git pull --rebase origin devgit add <file_name>/ git add .git rebase --continuegit rebase --skip if neededgit push --force-with-lease origin dev (safer way of force push) OR git push -f origin devFOR REFERENCE: https://gitexplorer.com/
Easiest way, This worked for me:
git fetch origin dev
git merge origin dev
Replace dev with branch_name you want to pull.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With