git notes main page | gitolite main page | license

IMPORTANT NOTE: although this page has a "" URL, this is not about gitolite. That's just an artifact of "" being translated to "" and so ALL my git related stuff gets carried over. Gitolite documentation has another /gitolite in the URL, so you can tell. My apologies for this confusion.

It's easy to forget that a lot of git's features, including features concerned with remote repos like fetch/pull/push, can be safely and easily tried out locally:

Now you're ready to test out whatever features you want using any or all of the clones you created.

Notice that we are simply using the local file system as the transport protocol. People familiar with URLs on a browser might recognise this as eqvt to file:///full/path/to/something, and indeed that is exactly what git treats it as.

Using ssh or http merely changes

What does NOT change is the behaviour of most git commands!

This means you can play with git to your heart's content in some temporary directory. There's no danger of messing up a real repo, or of getting side-tracked by connectivity or permissions or even speed issues, which might happen if you tried this with a real server.

If playing on a test repo is not sufficient for your needs, you can replace the "create a new bare repo" step with a clone of one of your real repos. For example, I might do this:

git clone --bare git:// b.git

and that would give me a "b.git" that is a bare repo that starts out with all the code and branches that my real server repo has.

Note: the terminology page may also be useful, especially the section on "accessing remote repositories".