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

Re: can I configure git clone to preserve the '.git' when it makes the initial dir

From
Stephan Beyer <s-beyer@gmx.net>
Date
Jul 4, 2008, 23:22 UTC
Message-ID
<20080704232241.GD28515@leksak.fem-net>
In-Reply-To
<p06240819c49453b4beda@[192.168.1.105]>
Hi,
Stephen Bannasch wrote:
> As I'm moving to more use of git I find it very helpful to keep the  
> '.git' suffix on the names of directories in which I have git  
> repositories. This makes it easier to distinguish between checkouts  
> using different SCMs.

When you finally fall in love with git, you won't want to use another SCM. :) Even, if you have to, there is git-cvs{exportcommit,import}, git-svn, and some other more or less working interfaces from git to other SCMs.

Perhaps it's also worth having a look at http://kitenet.net/~joey/code/mr/ (I've never used it, but heard of people who like using it.)

> Is there a way to configure git clone to preserve the '.git' suffix when 
> creating a directory?
I don't know a configuration for that, but you can simply do:
	git clone <repository> <reponame>.git
(e.g.	git clone git://example.com/foo.git foo.git)

But, btw, I think some unofficial convention is, that the ".git" suffix indicates a bare repository and without that suffix it is a checked out working tree.

Regards,
  Stephan
-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
Previous: Stephen Bannasch
Message 2 of 2 in “can I configure git clone to preserve the '.git' when it makes the initial dir”
  1. Stephen BannaschJul 4, 2008
  2. Stephan BeyerJul 4, 2008

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.