Re: Git Clone Parameter
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:13
Ramkumar Ramachandra [off-list ref] writes:
Allan Acheampong wrote:quoted
I could write a script with for each in but thats way too much hassle$ git for-each-ref --format="%(refname)" refs/remotes/origin/ | sed 's/refs\/remotes\/origin\///;/HEAD\|master/d' | xargs git checkout -b (completely untested ofcourse)
You would at least need "xargs -n 1" for the produced command line to make any sense, and it is wasteful to actually check out each and every branch to the working tree only to create it.