I want to find a way for my bare repository (which acts as my remote that I host on my own server computer) to store the actual working files as a working file, not the compressed version when I push them in.
Hi Yordan, welcome to the Community!
This question is not about any Atlassian product, but about how Git works. If you want actual working files, then you need a working repo, not a bare one:
What is the difference between a repository created using the
git init
command and thegit init --bare
command?Repositories created with the
git init
command are called working directories.Repositories created with
git init --bare
are called bare repos. They contain no working or checked out copy of your source files. They store git revision history of your repo in the root folder of your repository instead of in a .git subfolder.Why use one or the other?
Well, a working repository created with
git init
is for… working. It is where you will actually edit, add and delete files andgit commit
to save your changes.A bare repository created with
git init --bare
is for… sharing.
I extracted that definition from What is a bare Git repository, I recommend reading the full article for a better understanding.
Hope that helps!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.