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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to configure a submodule to point to a specific tag/commit


Let's say we have two repositories Main and Common, Common has been added as a submodule of Main. Commits of Common get tagged on master when Common is in a state it can be used by Main. Common might be developed ahead of Master such that when Main integrates Common, it is not interested in the head of Common on master but in an older commit that has been tagged.

I'm new to git and used to Allchange or PTC integrity version controls solutions where I'm used to this functionality.

How would you go about doing this in git/bitbucket? I can't find a simple command to do this and a work around I am considering is creating a branch of Common instead of a tag and point Main to that branch.

Note that I'm using Bitbucket v5.11.1



1 answer

If it is an option I suggest to create a versioned library or some sort of versioned artefact out of common that is consumed by Main. Main can choose which version of Common it needs. This way Main and Common can be maintained independently.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

167 views 0 2
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you