git clone https://glab.tagtic.cn/xxx/tgbus-comment.git cd tgbus-comment/ 查看git 提交的记录 git log 根据git 提交的记录切换到当时的分支 git checkout baba71e4c449957d08a96de22dc34ae6a02603cf grep "tgbus-comment.xy.huijitrans.com" * -r |awk -F: '{print "perl -pi -e s#tgbus-comment.xy.huijitrans.com#tgbus-comment-xy.tgbus.com#g",$1}' |bash git branch new_master git checkout new_master git add . git commit -m "tgbus-comment-n" git push origin new_master