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

1 Answer

0 votes

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
asked Oct 21, 2019 in Jenkins by rajeshsharma
0 votes
0 votes
asked Mar 17, 2021 in GitHub by rajeshsharma
0 votes
asked Oct 30, 2022 in DevOps by Robindeniel
0 votes
asked Feb 28, 2021 in DevOps by JackTerrance