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.

Apr 302012

How do I make git ignore mode changes


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

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>