git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Clone Parameter
@ 2013-07-19  9:21 Allan Acheampong
  2013-07-19 10:01 ` Ramkumar Ramachandra
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Allan Acheampong @ 2013-07-19  9:21 UTC (permalink / raw)
  To: git

Hi,

it would be nice to have a parameter on 'git clone' that not only clones the repo, but also creates local branches for ALL the branches that are in the repo. I'm new to git, but I found it very confusing to understand the difference between "remote" , "remotes". Is it in the cloned repo, or is it in  a remote place? If its local, why doesn't it get shown when I do 'git branch' but when I do 'git branch -a'. For example, I create a project locally with multiple branches, push it, delete it locally and clone it back to my machine. On a 'git branch' I would only see the head branch. I understand that there are projects that have a lot of branches that are not needed for that specific developer, but still it would be nice if one could specify this at clone time. Something like 'git clone <theR
 epo> -createLocalBranchesForAllBranches' . Of course the param shouldn't be that long. I could write a script with for each in but thats way too much hassle and effort for something that should be there already and I don't think I am the first to get confused by this.

I'd like to know your opinions about that and what you think about the suggestion.
Allan.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-19 19:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).