Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.