...
This commit is contained in:
parent
bec12cb5c1
commit
530c743a4b
|
@ -1,6 +1,8 @@
|
||||||
function git_clone_all
|
function git_clone_all
|
||||||
for remote_branch in (git branch -r | awk 'NR>1{print $1}')
|
for remote_branch in (git branch -r | awk '{print $1}')
|
||||||
set local_branch (basename $remote_branch)
|
set local_branch (basename $remote_branch)
|
||||||
git branch --track $local_branch $remote_branch
|
if not git rev-parse --verify "$local_branch"
|
||||||
|
git branch --track $local_branch $remote_branch
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user