dotfiles/cli/fish/functions/git_clone_all.fish
Klesh Wong 530c743a4b ...
2021-06-19 17:42:39 +08:00

9 lines
272 B
Fish

function git_clone_all
for remote_branch in (git branch -r | awk '{print $1}')
set local_branch (basename $remote_branch)
if not git rev-parse --verify "$local_branch"
git branch --track $local_branch $remote_branch
end
end
end