From 6209b8ba859ea869aa0dd8c89d4b3d12ea8f2da9 Mon Sep 17 00:00:00 2001 From: Martin Tamashiro Date: Sat, 11 Jun 2016 14:59:23 -0300 Subject: [PATCH] Ignore file mode changes on commits --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index c0ff4c9..bf29687 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Bypass pre-commit and commit-msg githooks](#bypass-pre-commit-and-commit-msg-githooks) * [List commits and changes to a specific file (even through renaming)](#list-commits-and-changes-to-a-specific-file-even-through-renaming) * [Clone a single branch](#clone-a-single-branch) +* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits) @@ -739,5 +740,10 @@ git log --follow -p -- git clone -b --single-branch https://github.com/user/repo.git ``` +## Ignore file mode changes on commits +```sh +git config core.fileMode false +``` + diff --git a/tips.json b/tips.json index 8601f54..beeb746 100644 --- a/tips.json +++ b/tips.json @@ -327,4 +327,7 @@ },{ "title": "Clone a single branch", "tip": "git clone -b --single-branch https://github.com/user/repo.git" +},{ + "title": "Ignore file mode changes on commits", + "tip": "git config core.fileMode false" }]