--- tags: 前端工具 --- 【筆記】批次clone git repo: Bash === https://ithelp.ithome.com.tw/articles/10226936 ``` #!/bin/bash for gitUrl in project5.git do echo "$gitUrl" git clone "git@bitbucket.org:conie29445/$gitUrl" done ``` ``` #!/bin/bash for git_repo_name in git_repo_name1 git_repo_name2 git_repo_name3 do echo "target: $git_repo_name" rm -rf "$git_repo_name" git clone "ssh://git@bitbucket.aaa.ccc/xxx/$git_repo_name.git" done ```