I got this annoying error when trying to pull my repository:

Git terminal error: unlink of file failed. Should I try again?


In my case I had another program running the code (a virtual machine). I had to shut down the application and then I was able to successfully execute my code. So make sure you're not running any other applications that use that code.