Env
I ran into strange permission problems while rebasing. I tried to abort but in vain.
$ git rebase --abort
rm: cannot unlink `c:/git/my-repo/.git/rebase-merge/.git-rebase-todo.swp': Permission denied
rm: cannot remove directory `c:/git/my-repo/.git/rebase-merge': Directory not empty
I tried to skip abort, it too results in similar problem.
Move those folders to some other location on your computer/
.git/rebase-merge
.git/rebase-apply
You might not have both but if you do move them both.
restart your git-bash, they might be a lock on the file so restart will release it.