Sep 6

快速替换git的提交地址 不指定

bkkkd , 16:46 , 网摘 » 软件应用 , 评论(0) , 引用(0) , 阅读(722) , Via 本站原创 | |
最近git的服务进行更换.导致本地的项目都需要更换新的地址
但路径还是使用原来的路径.
一个个修改太浪费时间了.

# 找到需要更新的config文件路径,并保存到filepath.txt文件名,可以根据实例情况进行删除部分路径
find ./ -name 'config'|grep '.git' |grep -v 'vendor' >filepath.txt
# 替换
cat filepath.txt |xargs sed -i "s/teambition/aliyun/g"
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]