Something wrong is going on with one of the files in my local git repository. When I\'m trying to change the branch it says:
Unlink of file \'templates/media
I had this kind of issue on Windows 7 and it turned out to be due to some orphaned git.exe process.
To solve it, open Task Manager and kill all git.exe processes.
Since git commands are short-lived, you should normally never see any git.exe in Task Manager. When they are there, it usually means something is wrong, and you should kill those processes.