If you delete your local working copy, you will lose any uncommitted/unpushed changes. Before doing that, you can try pushing from Git Bash to see a more detailed error message. Open Git Bash in the project folder, run git status to confirm what’s pending, then git push (or git pull) to reproduce the issue with full output, which can help identify the root cause.
I suggest deleting the project from the local directory and then pulling it again. I had exactly the same error, and this solved the problem for me.