Re: Git Clone Parameter

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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.

Re: Git Clone Parameter

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:58:13

Junio C Hamano wrote:
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.
Right.  xargs -n 1, git branch, and refname:short.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help