Unlink of file' failed. Should I try again? (y/n)

344 Views Asked by At

I'm trying to revert the last commit that I did. I recently had added three submodules into my repository.

enter image description here

When I try to revert the last commit

git revert --no-commit 787d04a

I get:

Unlink of file 'components/CDDDoser' failed. Should I try again? (y/n) n

To resolve this I followed the answers in this link but nothing seems to work: Unlink of file Failed. Should I try again?

  1. Cleaning garbage

    git gc

Didn't fixed it

  1. Opening up Process Explorer:

enter image description here

enter image description here

There doesn't seem to be any program that is also running Git or has my repository opened in it. So this doesn't seem to be the issue

  1. Tried to running git gc as administrator and then reverting the changes with git revert --no-commit 787d04a but it still didn't fixed it

I simply don't know what else to do, it's extremely frustrating. I been trying to troubleshoot this for the whole day. Any help is appreciated, or at least if git revert is not doing the trick because of this problem, are there any other recommendations of alternatives commands that are not git reset that I can do to safely make changes to remote repositories? Thanks.

0

There are 0 best solutions below