vscode-en

【Vscode】How to solve the problem when a file cannot be updated due to lack of permissions in vscode

0
0

【Vscode】How to solve the problem when a file cannot be updated due to lack of permissions in vscode

Hello.

When developing with vscode, I found a problem that I couldn't change it because I didn't have the permission of the file.

This problem can be solved by changing the permissions of the project user to yourself.

However, if you change the permissions of a file, when you are developing a team, you can end up pushing even the permissions of the file to git.

If this happens, you may be warned by the team.

So, it would be better if you change the permissions of your local project folder and at the same time ignore the push of file permission changes to git.

This way, files with changed permissions won't be published online.

$ sudo chown -R userName /Users/userName/projectName
$ cd /Users/userName/projectName
$ git config core.filemode false
$ git config -l | grep filemode
Verify that core.filemode = false

 

git config core.filemode is set to true by default, and if it's not set to false, it will automatically convert to 644 if the permissions are set to 755

Pocket
LinkedIn にシェア

  • この記事を書いた人
  • 最新記事

藤沢瞭介(Ryosuke Hujisawa)

りょすけと申します。18歳からプログラミングをはじめ、今はフロントエンドでReactを書いたり、AIの勉強を頑張っています。off.tokyoでは、ハイテクやガジェット、それからプログラミングに関する情報まで、エンジニアに役立つ情報を日々発信しています!

-vscode-en

Copyright© off.tokyo , 2021 All Rights Reserved Powered by AFFINGER5.