Re: Git Clone Parameter
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jul 19, 2013, 10:01 UTC
- Message-ID
- <CALkWK0=q62SmQwDPKjRv+Z8D59Uy=Kpanth8QFYFJ=xOA5JCtw@mail.gmail.com>
- In-Reply-To
- <FB572366-0B1D-4053-9255-979CB213B160@gmail.com>
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)
Do you see what the problem is immediately? There's nothing special about "origin": I could have branches with the same name on several remotes. Without detaching local branches from remote branches, there is no distributed workflow: your central workflow is just a special case.