From a7b22a8df6296982e3a4d81485c0056bd4fc4b55 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 5 Jun 2019 14:40:28 -0300 Subject: Adds git-reset-attributes --- git-reset-attributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 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 -- cgit v1.2.3