Created
November 12, 2019 11:24
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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