GIT, Other

GIT PULL error – Please move or remove them before you merge.

One time, I was trying to pull my origin repository

git pull origin develop

and got the list of some local files that I don’t need and the error message

Please move or remove them before you can merge.

I tried resetting the repo but it didn’t work. The files are still there and causing the error.


To solve the issue I cleared the local files using the code

git clean -d -f

then do the pull again.

git pull origin develop