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
Community Members
Community Events
Community Groups

How to make the parent git folder always point to latest commit whenever there is a new commit in ch

Every time I push a commit to the submodule I need to update the parent repo to the latest commit in the submodule. Is there any automatic way to do that in the remote?

Every time push a commit in the submodule repo I want the parent to automatically point to the latest commit of the child repo. Please suggest if it's possible and how?

1 answer

0 votes
Mark C Atlassian Team Sep 14, 2021


Welcome to the community.

Right now, I'm afraid there's no feature in Bitbucket Cloud to automatically update your parent repository with a submodule.

As a workaround, you can achieve this by using Bitbucket Pipelines.
The idea is to trigger a Pipelines build in your submodule repository that will update your parent repository to the latest commit in the submodule.
This way, there's no need for you to manually update your parent repository.

You can also check out the below existing community posts that might help:

Hope it helps and let me know if you have further questions that I can help with.

Mark C

Suggest an answer

Log in or Sign up to answer
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,170 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