From: Junio C Hamano <gitster@pobox.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Allan Acheampong <allanadjei@gmail.com>, git@vger.kernel.org
Subject: Re: Git Clone Parameter
Date: Fri, 19 Jul 2013 08:05:06 -0700 [thread overview]
Message-ID: <7vvc46y4il.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CALkWK0=q62SmQwDPKjRv+Z8D59Uy=Kpanth8QFYFJ=xOA5JCtw@mail.gmail.com> (Ramkumar Ramachandra's message of "Fri, 19 Jul 2013 15:31:29 +0530")
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> Allan Acheampong wrote:
>> 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.
next prev parent reply other threads:[~2013-07-19 15:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 9:21 Git Clone Parameter Allan Acheampong
2013-07-19 10:01 ` Ramkumar Ramachandra
2013-07-19 15:05 ` Junio C Hamano [this message]
2013-07-19 15:44 ` Ramkumar Ramachandra
2013-07-19 13:33 ` Johannes Sixt
2013-07-19 15:02 ` Junio C Hamano
2013-07-19 15:02 ` Junio C Hamano
2013-07-19 15:47 ` Ramkumar Ramachandra
2013-07-19 17:19 ` Philip Oakley
2013-07-19 19:10 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vvc46y4il.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=allanadjei@gmail.com \
--cc=artagnon@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).