批量替换和修改Git远端地址

在git bash中执行

1
find . -name ".git" -exec sed -i 's/旧地址/新地址/g' {}/config \;

将替换所有子目录的git远端地址