git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephan Beyer <s-beyer@gmx.net>
To: Stephen Bannasch <stephen.bannasch@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: can I configure git clone to preserve the '.git' when it makes the initial dir
Date: Sat, 5 Jul 2008 01:22:41 +0200	[thread overview]
Message-ID: <20080704232241.GD28515@leksak.fem-net> (raw)
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

      reply	other threads:[~2008-07-04 23:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04 22:28 can I configure git clone to preserve the '.git' when it makes the initial dir Stephen Bannasch
2008-07-04 23:22 ` Stephan Beyer [this message]

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=20080704232241.GD28515@leksak.fem-net \
    --to=s-beyer@gmx.net \
    --cc=git@vger.kernel.org \
    --cc=stephen.bannasch@gmail.com \
    /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).