Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied errors on random files during branch checkout

All of a sudden, I started receiving the following error when checking out my local master branch. The problematic file, as well as the error itself, appears to be random (sometimes the checkout works perfectly fine).

"c:\Program Files (x86)\Git\bin\git.exe" checkout --merge "master"
D   abc123.cs
error: unable to create file abc123.cs (Permission denied)
Switched to branch 'master'
Done
like image 603
bugged87 Avatar asked Dec 10 '12 14:12

bugged87


2 Answers

Just closing the editor solved my issue. By the way, I was using Atom editor.

like image 113
Mr. Unnormalized Posterior Avatar answered Nov 08 '22 04:11

Mr. Unnormalized Posterior


I don't know if you're using sublime text, but when I got the permission denied problem, I noticed there was a license notice popup; that tries to get you to donate to sublimetext3 every once in a while.

Once I closed that popup and ran the commands again, the denied permission errors went away and everything worked fine.

I extrapolate that other editors with popup notices may cause this issue.

Rebooting, as bugged87 mentioned, would certainly get rid of any popups or notifications.

like image 8
ahnbizcad Avatar answered Nov 08 '22 04:11

ahnbizcad