2021-06-15 03:58:03 +00:00
|
|
|
function git_clone_all
|
2021-06-19 09:42:39 +00:00
|
|
|
for remote_branch in (git branch -r | awk '{print $1}')
|
2021-06-15 03:58:03 +00:00
|
|
|
set local_branch (basename $remote_branch)
|
2021-06-19 09:42:39 +00:00
|
|
|
if not git rev-parse --verify "$local_branch"
|
|
|
|
git branch --track $local_branch $remote_branch
|
|
|
|
end
|
2021-06-15 03:58:03 +00:00
|
|
|
end
|
|
|
|
end
|