3 ms·
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
by pletnes 5y ago
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.)
- ohgodplsno 5y agogit config core.filemode false ?
- pletnes 5y agoInteresting. I will have a look.
- JoshStrobl 5y agoI 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.