From 97a8a06efc01ef34a8d7c830f231cf7476c3f582 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 10 Sep 2019 21:03:35 -0300 Subject: Adds git-clean-unstaged --- git-clean-unstaged | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 git-clean-unstaged 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 -- cgit v1.2.3