TG
Development·1 min read

Ignoring git status when file or folder permissions change in a git-versioned project

If someone runs chmod 777 -Rf * on a project directory or ...

Ler em português
Ignoring git status when file or folder permissions change in a git-versioned project

[LINUX] [GIT] if someone runs chmod 777 -Rf * on a project directory or changes permissions some other way and you want git to ignore it, just run this command:

git config core.filemode false

That way, when you run "git status" the change won't be listed and you don't have to commit it, in case it was unintentional.

https://stackoverflow.com/questions/1257592/how-do-i-remove-files-saying-old-mode-100755-new-mode-100644-from-unstaged-cha

Thiago Marinho

September 2, 2019 · Brazil