git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-clone and cg-clone

From
Nicolas Vilz 'niv' <niv@iaglans.de>
Date
Apr 6, 2006, 22:14 UTC
Message-ID
<443592A8.4070203@iaglans.de>
In-Reply-To
<44355978.3080205@itaapy.com>
Belmar-Letelier wrote:
Show 15 quoted lines
> Since 0.17 to take benefit of cg-switch
> 
> I use:
> 
> $ git-clone  xxx
> $ cg-branch-add origin xxx
> 
> instead of
> 
> $ cg-clone xxx
> 
> becauce cg-clone did not fetch all the heads.
> 
> Is there a better way to do this ?
> 

well, first I was also using cg clone... but i also realized, that there is only one branch being pulled from the repository.

If you use git clone, then all tags and branches will be pulled... so everytime i start using a fresh repository and start pulling origin of it, i use git clone instead of cg-clone.

i also use git checkout instead of cg-switch... well, i think i haven't had a use for the effekts, cg-switch does, and always wanted git checkout... and wondered about the files, which were missing in the index of the new branch..

i think thats the difference between porcelain and plumbing...

Sincerly Nicolas

Previous: Belmar-Letelier
Message 2 of 2 in “git-clone and cg-clone”
  1. Belmar-LetelierApr 6, 2006
  2. Nicolas Vilz 'niv'Apr 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.