jjzjj

将git仓库从submodule转换为subtree

三个脚本AlexanderMikhailiancat.gitmodules|whilereadidoif[[$i==\[submodule*]];thenmpath=$(echo$i|cut-d\"-f2)readi;readi;murl=$(echo$i|cut-d\-f3)mcommit=`eval"gitsubmodulestatus${mpath}|cut-d\-f2"`mname=$(basename$mpath)echo-e"$name\t$mpath\t$murl\t$mcommit"gitsubmoduledeinit$mpathgitrm-r--cached$mpathrm-
12