]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Adds git-reset-attributes
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 5 Jun 2019 17:40:28 +0000 (14:40 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 5 Jun 2019 17:40:28 +0000 (14:40 -0300)
git-reset-attributes [new file with mode: 0755]

diff --git a/git-reset-attributes b/git-reset-attributes
new file mode 100755 (executable)
index 0000000..929b646
--- /dev/null
@@ -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