Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where is the physical location of the git repository?

Baztheman June 11, 2019

Hi, 

I wonder where is the physical location of the git repositories that I have created via Bitbucket? Where are those .git directories?

Thank you.

Barry

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 11, 2019

Hi Barry,

The physical location is in the application data directory, under shared\data.

The .git directory is where all the Git magic is happening, it holds the config for your repository, the object database, branches and tags etc. See Inside Git: .Git directory and gitrepository-layout for more information.

Baztheman June 11, 2019

Mikael, thanks for the quick reply. Yes, I am looking for the .git directories but I cannot find them. I used plain git before and I can find .git directories easily. I have installed bitbucket via .bin package and userid atlbitbucket has been created. I checked the home directories of atlbitbucket. Is this where all data, repositories suppose to be stored? Thank you. Barry

 

atlbitbucket@bitbucket:~/shared/data$ pwd

/var/atlassian/application-data/bitbucket/shared/data

atlbitbucket@bitbucket:~/shared/data$ ls -la

total 2620

drwxr-xr-x 8 atlbitbucket atlbitbucket    4096 Jun 10 14:43 .

drwxr-xr-x 6 atlbitbucket atlbitbucket    4096 Jun 10 14:43 ..

drwxr-xr-x 2 atlbitbucket atlbitbucket    4096 Jun  7 13:30 attachments

drwxr-xr-x 2 atlbitbucket atlbitbucket    4096 Jun  7 13:30 avatars

-rw-r--r-- 1 atlbitbucket atlbitbucket 2643968 Jun 10 14:43 db.h2.db

drwxr-xr-x 3 atlbitbucket atlbitbucket    4096 Jun  7 13:30 git-lfs

drwxr-xr-x 4 atlbitbucket atlbitbucket    4096 Jun  7 13:30 migration

drwxr-xr-x 4 atlbitbucket atlbitbucket    4096 Jun 10 16:04 repositories

drwxr-xr-x 3 atlbitbucket atlbitbucket    4096 Jun  7 13:40 snapshots

atlbitbucket@bitbucket:~/shared/data$ ls -la repositories/

total 16

drwxr-xr-x 4 atlbitbucket atlbitbucket 4096 Jun 10 16:04 .

drwxr-xr-x 8 atlbitbucket atlbitbucket 4096 Jun 10 14:43 ..

drwxr-xr-x 6 atlbitbucket atlbitbucket 4096 Jun 10 14:53 1

drwxr-xr-x 5 atlbitbucket atlbitbucket 4096 Jun 10 16:04 12

atlbitbucket@bitbucket:~/shared/data$ ls -la repositories/1

total 40

drwxr-xr-x  6 atlbitbucket atlbitbucket 4096 Jun 10 14:53 .

drwxr-xr-x  4 atlbitbucket atlbitbucket 4096 Jun 10 16:04 ..

drwxr-xr-x  2 atlbitbucket atlbitbucket 4096 Jun 10 14:53 app-info

-rw-r--r--  1 atlbitbucket atlbitbucket  548 Jun  7 13:34 config

-rw-r--r--  1 atlbitbucket atlbitbucket   23 Jun  7 13:34 HEAD

drwxr-xr-x  4 atlbitbucket atlbitbucket 4096 Jun  7 13:34 hooks

drwxr-xr-x 10 atlbitbucket atlbitbucket 4096 Jun 10 14:52 objects

-rw-r--r--  1 atlbitbucket atlbitbucket  105 Jun 10 14:53 packed-refs

drwxr-xr-x  4 atlbitbucket atlbitbucket 4096 Jun  7 13:34 refs

-rw-r--r--  1 atlbitbucket atlbitbucket  271 Jun  7 13:34 repository-config

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 11, 2019

All the data for the repository is stored under application data, but Bitbucket compresses it and you cannot see the actual content like you do on a client.

Baztheman June 11, 2019

So, the only way to see the .git repositories/directories will be using bitbucket right?

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 11, 2019

Correct, or you can clone the repository and see the content locally.

Baztheman June 11, 2019

Thank you so much for your quick replies. Barry

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events