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 the git 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 and git commit to save your changes. A bare repository created with git init --bare is for… sharing.
What is the difference between a repository created using the git init command and the git init --bare command?
git init
git init --bare
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 and git commit to save your changes.
git commit
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
It looks like you're new here. Sign in or register to get started.