I have a folder ~/workspaces where I place all my local repositories from GitHub and other coding projects.
I use VS Code and have had permissions problems since I installed Ubuntu a month ago. I receive the EACCES: permission denied
in VS Code when I try to save files every single time after I did a git checkout branch
. Is this normal?
I counter it with $ sudo chown -R <user-name> <directory-name>
and sudo chmod -R 777 .
(I do not really know whats the difference anyway) but it keeps coming up again.
Also, I thought doing sudo npm i
is a bad thing but I keep getting Access Denied Errors
for both local and global installations with npm if I do not sudo. How can I prevent this?
Finally, I would love to automatically login with GitHub via console without the need to constantly login with username and password. A quick Google could not find me a solution. How can I integrate an Access Token for the whole workspace folder (all repositories)? Is this possible?
Thank you very much for your support, it is much appreciated!
I am on Ubuntu 18.04.1 LTS btw.
~/workspaces
(ls -l ~/workspaces
), how do you launch vscode. And password aging can be used to prevent constant logins.