tags:

views:

530

answers:

2

Here's a git repository on github:

git://github.com/Fudge/gltail.git

What's the simplest way to check out a read-only copy using the git command line tool?

update: Here's a suggestion to the githubbers: Do something similar to google code, which automatically displays a message such as:

Use this command to anonymously check out the latest project source code:
    # Non-members may check out a read-only working copy anonymously over HTTP.
    svn checkout http://orapig.googlecode.com/svn/trunk/ orapig-read-only
+4  A: 

git clone git://github.com/Fudge/gltail.git

mipadi
+4  A: 

The question is a bit misleading. There's not really such a thing as a "read-only copy" of a git repository. You can clone an existing repository with:

git clone git://example.com/path/to/repo.git

But unlike Subversion, every "copy" in git is itself a completely new repository. Since you can commit to your own repository, it's certainly not read-only in that sense.

John Feminella
I'm just quoting from github (http://github.com/Fudge/gltail), which specifies the quote git: as being "HTTP Read Only".
Mark Harrison
@Mark: That just means that the http protocol for that repository is only configured to allow checkouts and pulls, not pushes.
Sean Nyman