aboutsummaryrefslogtreecommitdiff
path: root/git-clean-unstaged
diff options
context:
space:
mode:
Diffstat (limited to 'git-clean-unstaged')
-rwxr-xr-xgit-clean-unstaged9
1 files changed, 9 insertions, 0 deletions
diff --git a/git-clean-unstaged b/git-clean-unstaged
new file mode 100755
index 0000000..2fb6737
--- /dev/null
+++ b/git-clean-unstaged
@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+# See: Unstaged changes left after git reset --hard - f'cking .gitattributes
+# https://stackoverflow.com/questions/11383094/unstaged-changes-left-after-git-reset-hard
+
+# Dispatch
+git rm .gitattributes
+git add -A
+git reset --hard