0 votes
31 views
in Technology by (51.6k points)

How is a bare repository different from the standard way of initializing a Git repository?

1 Answer

0 votes
by (51.6k points)

Using the standard method:

git init

You create a working directory with git init

A .git subfolder is created with all the git-related revision history

Using the bare way

git init --bare

It does not contain any working or checked out a copy of source files

Bare repositories store git revision history in the root folder of your repository, instead of the .git subfolder

Related questions

0 votes
1 answer 28 views
0 votes
1 answer 19 views
0 votes
1 answer 18 views
0 votes
1 answer 23 views
0 votes
1 answer 22 views
0 votes
1 answer 23 views
0 votes
1 answer 30 views
0 votes
1 answer 35 views
0 votes
1 answer 43 views
0 votes
1 answer 45 views
0 votes
1 answer 47 views
0 votes
1 answer 37 views
...