Skip to content

Instantly share code, notes, and snippets.

@Geolykt
Created October 22, 2022 18:22
Show Gist options
  • Save Geolykt/98b84e0127d8610d3c733d6e61fab44d to your computer and use it in GitHub Desktop.
Save Geolykt/98b84e0127d8610d3c733d6e61fab44d to your computer and use it in GitHub Desktop.
Set all modified (probably modified due to changed file mods) files to have a chmod of 644
git status | grep "modified" | egrep -o " {3}.+" | egrep -o "[^ ]+" | xargs -n1 chmod -v 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment