]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Adds git-clean-unstaged
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 11 Sep 2019 00:03:35 +0000 (21:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 11 Sep 2019 00:03:35 +0000 (21:03 -0300)
git-clean-unstaged [new file with mode: 0755]

diff --git a/git-clean-unstaged b/git-clean-unstaged
new file mode 100755 (executable)
index 0000000..2fb6737
--- /dev/null
@@ -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