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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct, or you can clone the repository and see the content locally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.