Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git shows all files as modified after changing file permission

Tags:

git

I changed the file permission to 777 of a non-bare git repository on Ubuntu OS. After that all files in the repository is showing as modified. I don't want to add all files again and commit. I want to commit the files that I have edited. Is there any way to fix this?

like image 462
Sambit Avatar asked Nov 21 '14 08:11

Sambit


1 Answers

git config core.fileMode false

This tells git to ignore exec-bit changes.

like image 79
Jin Avatar answered Sep 26 '22 00:09

Jin