Re:Highlights from Git 2.34
by pletnes on Monday November 15, 2021 @04:10PM
(#29232807)
Sometimes I almost lose my mind over these situations where git on windows reports a permissions change (git status claims a diff) but there is no way to commit nor revert. This happens maybe once per year and I’ve no idea what a proper fix is. Typically blocks rebasing etc but revert and commit can’t fix it. (Apologies for the poor and ranty bug report.)
[ Parent
| on HN ]
Re:Highlights from Git 2.34
by JoshStrobl on Monday November 15, 2021 @04:23PM
(#29232946)
I ended up putting this in my .gitconfig (global)
[alias]
permission-reset = "!git diff -p | grep -E \"^(diff|old mode|new mode)\" | sed -e \"s/^old/NEW/;s/^new/old/;s/^NEW/new/\" | git apply"
So when I run git permission-reset, it sorts it out.
Re:Highlights from Git 2.34
by ohgodplsno on Monday November 15, 2021 @04:17PM
(#29232902)
git config core.filemode false ?