From: Silvio Rhatto Date: Wed, 11 Sep 2019 00:03:35 +0000 (-0300) Subject: Adds git-clean-unstaged X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=97a8a06efc01ef34a8d7c830f231cf7476c3f582;p=utils-git.git Adds 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