gitbitbucketbare

Is a Bitbucket repository "--bare" or not?


I just created a Bitbucket account and already made a few commits to the Bitbucket server. I also invited my team to check the Bitbucket repo for changes.

But, after a while, I found an article saying that every shared repo should be a --bare one.

Is my Bitbucket repo, that I've created via the Bitbucket web interface are --bare one? Or should I create another --bare directory on my machine?

Is this necessary to do what is described in this answer to handle two remote repos?


Solution

  • Yeah, you can assume that your bitbucket-repository is a bare-repository. By design.

    Because all repositories that are hosted remote and are only to push-to should be bare. There's no reason to assume something different.

    If you are unsure, follow your link and compare. But you don't need another git repository if you are happy with bitbucket as a host.