{"thread":{"id":"14292","subject":"can I configure git clone to preserve the '.git' when it makes the initial dir","startedAt":"2008-07-04T22:28:33Z","lastAt":"2008-07-04T23:22:41Z","messageCount":2,"participants":["Stephen Bannasch","Stephan Beyer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"82261","messageId":"p06240819c49453b4beda@[192.168.1.105]","threadId":"14292","inReplyTo":null,"subject":"can I configure git clone to preserve the '.git' when it makes the initial dir","fromName":"Stephen Bannasch","fromEmail":"stephen.bannasch@gmail.com","sentAt":"2008-07-04T22:28:33Z","receivedAt":"2008-07-04T22:28:33Z","isPatch":false,"sender":{"key":"stephen.bannasch@gmail.com","avatar":null},"body":"As I'm moving to more use of git I find it very helpful to keep the \n'.git' suffix on the names of directories in which I have git \nrepositories. This makes it easier to distinguish between checkouts \nusing different SCMs.\n\nIs there a way to configure git clone to preserve the '.git' suffix \nwhen creating a directory?\n\nThanks for any ideas.\n\n-- \n- Stephen Bannasch\n   Concord Consortium, http://www.concord.org\n"},{"id":"82262","messageId":"20080704232241.GD28515@leksak.fem-net","threadId":"14292","inReplyTo":"p06240819c49453b4beda@[192.168.1.105]","subject":"Re: can I configure git clone to preserve the '.git' when it makes the initial dir","fromName":"Stephan Beyer","fromEmail":"s-beyer@gmx.net","sentAt":"2008-07-04T23:22:41Z","receivedAt":"2008-07-04T23:22:41Z","isPatch":false,"sender":{"key":"s-beyer@gmx.net","avatar":"https://avatars.githubusercontent.com/u/143889?v=4"},"body":"Hi,\n\nStephen Bannasch wrote:\n> As I'm moving to more use of git I find it very helpful to keep the  \n> '.git' suffix on the names of directories in which I have git  \n> repositories. This makes it easier to distinguish between checkouts  \n> using different SCMs.\n\nWhen you finally fall in love with git, you won't want to\nuse another SCM. :)\nEven, if you have to, there is git-cvs{exportcommit,import}, git-svn,\nand some other more or less working interfaces from git to other SCMs.\n\nPerhaps it's also worth having a look at http://kitenet.net/~joey/code/mr/\n(I've never used it, but heard of people who like using it.)\n\n> Is there a way to configure git clone to preserve the '.git' suffix when \n> creating a directory?\n\nI don't know a configuration for that, but you can simply do:\n\tgit clone <repository> <reponame>.git\n(e.g.\tgit clone git://example.com/foo.git foo.git)\n\nBut, btw, I think some unofficial convention is, that the \".git\" suffix\nindicates a bare repository and without that suffix it is a checked out\nworking tree.\n\nRegards,\n  Stephan\n\n-- \nStephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F\n"}]}