dotfiles/cli/fish/functions/git_clone_all.fish

7 lines
206 B
Fish
Raw Normal View History

2021-06-15 03:58:03 +00:00
function git_clone_all
for remote_branch in (git branch -r | awk 'NR>1{print $1}')
set local_branch (basename $remote_branch)
git branch --track $local_branch $remote_branch
end
end