From: Silvio Rhatto Date: Wed, 5 Jun 2019 17:40:28 +0000 (-0300) Subject: Adds git-reset-attributes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a7b22a8df6296982e3a4d81485c0056bd4fc4b55;p=utils-git.git Adds git-reset-attributes --- diff --git a/git-reset-attributes b/git-reset-attributes new file mode 100755 index 0000000..929b646 --- /dev/null +++ b/git-reset-attributes @@ -0,0 +1,9 @@ +#!/bin/bash +# +# Reset .gitattributes +# +# See https://stackoverflow.com/questions/11383094/unstaged-changes-left-after-git-reset-hard + +git rm .gitattributes +git add -A +git reset --hard