I want to create a repositary inside the same repositary like subrepositary.

Hi Team,

I want to create a sub repo in the same repository and want to access in other project. Normally will use submodule for a repo, but is submodule will work for the subrepo also. If it is not please provide the solution for sub repo creation and access. For example I have a project A and project B in side Project B i have a temp Repo,now i want to create example repo inside the temp Repo and example Repo can be accessible from ProjectA if i create submoule for temp Repo.


Thanks in advance.

1 answer

Why not use 2 repositories and have cross repository dependencies?

Indeed. Note that there really isn't such a thing in Git as a "repository inside a repository". Git submodules are a solution you can use. They work by setting a commit from a separate repository that gets linked to as a directory in the current repository. Bitbucket Server's UI supports this.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

626 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot