Skip to content

Instantly share code, notes, and snippets.

@radabass
Created November 12, 2019 11:24
Show Gist options
  • Save radabass/3e5aacb3f90bb618b4fe3544554e8f47 to your computer and use it in GitHub Desktop.
Save radabass/3e5aacb3f90bb618b4fe3544554e8f47 to your computer and use it in GitHub Desktop.
Remove git chmod changes in all the git repositories inside a project for Windows
## This commands need to be executed on git bash or other linux terminal.
#Remove svn old versions for the entire project (in site root folder execute):
find -name ".svn" | xargs /bin/rm -rf
#Avoids problem with crlf, spacings and chmod under windows10
git config --global core.filemode false
#Removes locally for one repository
git config --unset core.filemode
#Remove local filemode true in all the git repositories
find -name "config" | xargs -I{} sed --in-place '/filemode = true/d' {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment