It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible for a remote repo to store files with their original format?

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.

1 answer

1 accepted

0 votes
Answer accepted
Ana Retamal Atlassian Team Aug 21, 2018

 

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,955 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you