Search⌘ K

Setting up a Bare Repository

Explore how to set up a bare Git repository, understand its differences from a normal repository, and practice cloning it to simulate multiple users working together. Learn how to push changes from one clone and fetch and merge those changes in another, synchronizing all repositories.

We'll cover the following...

Configuration

In this example, you’re going to repeat the last section’s work. But this time, you’re going to be able to push your commits at the end. This will be achieved by having a bare repository that your two imagined users will pull from and push to.

Type this in:

1	mkdir lgthw_bare_repo
2	cd lgthw_bare_repo
3	git init --bare
Terminal 1
Terminal
Loading...

Did you spot the difference?

The

...