windows - how to rewrite history to remove executable bit in git -


i have imported rather large repository scm git. unfortunately migration done (had be) on windows , every file got committed git execute bit set. avoid having migration again (it long , hang-prone process) trying figure out if can clean out executable bit server side. thought using git filter-branch somehow combined git update-index, take hints how proceed.

doing huge commit @ end clearing executable bits not solution -- don't want every file have bump in history.

this seems trick:

git filter-branch --index-filter 'git ls-files -s  |                                   sed s/^100755/10644/ |                                   git update-index --index-info' -- --all 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -