aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-09-10 21:03:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-09-10 21:03:35 -0300
commit97a8a06efc01ef34a8d7c830f231cf7476c3f582 (patch)
tree0672e592109ff06e2d8903a87a6075a14a4901e7
parenta7b22a8df6296982e3a4d81485c0056bd4fc4b55 (diff)
downloadutils-git-97a8a06efc01ef34a8d7c830f231cf7476c3f582.tar.gz
utils-git-97a8a06efc01ef34a8d7c830f231cf7476c3f582.tar.bz2
Adds 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