Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,370
Community Members
 
Community Events
165
Community Groups

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

Hi,

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

Regards,

Dimitri

1 answer

0 votes

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
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,087 views 2 9
Read article

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