aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-06-05 14:40:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-06-05 14:40:28 -0300
commita7b22a8df6296982e3a4d81485c0056bd4fc4b55 (patch)
tree6af468cf70bfc4558753892904ac8874ead151fe
parentf6f41a89c46f99a9c529449d5337f3d47da6af1c (diff)
downloadutils-git-a7b22a8df6296982e3a4d81485c0056bd4fc4b55.tar.gz
utils-git-a7b22a8df6296982e3a4d81485c0056bd4fc4b55.tar.bz2
Adds git-reset-attributes
-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