Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference in a bare and non-bare Git repository [duplicate]

Tags:

git

In git, I was just wondering what the difference between a bare and a non-bare repository are. I know that a bare repository is typically just pushed to and changes aren't made within it. Other than that, what makes it different than a repository that is non-bare?

like image 277
Joshua Avatar asked May 29 '26 00:05

Joshua


1 Answers

Bare repository has just the .git folder without a checked out source tree. Bare repository is usually used in the remote depository.

Non-bare repository has both .git folder and source tree.

like image 188
Eran Avatar answered May 31 '26 14:05

Eran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!