aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-reset-attributes9
1 files changed, 9 insertions, 0 deletions
diff --git a/git-reset-attributes b/git-reset-attributes
new file mode 100755
index 0000000..929b646
--- /dev/null
+++ b/git-reset-attributes
@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+# Reset .gitattributes
+#
+# See https://stackoverflow.com/questions/11383094/unstaged-changes-left-after-git-reset-hard
+
+git rm .gitattributes
+git add -A
+git reset --hard