Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Apr 302012
 

How do I make git ignore mode changes

Answer:

By default, if you have changed the file permission, git will also count the changes in file mode , e.g.

# git diff TEST.txt
diff --git a/TEST.txt b/TEST.txt
old mode 100644
new mode 100755

To ignore, simply type

# git config core.filemode false