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,294,578
Community Members
 
Community Events
165
Community Groups

How to get only changed files in BitBucket when compared with last Version

Hi All,

We are using BitBucket for code repository. 

Currently when ever code drop happening, deployment team is taking complete files (Master branch) and deploying to server (replacing the files if exists). 

Is it possible to take Delta files to some temporary branch by comparing the current Bitbucket release  with previous release versions. So that we can provide this Delta files Branch to team to deploy them to server

1 answer

0 votes
Mark C Atlassian Team Aug 27, 2021

Hi @jetty ramu

Welcome to the community.

You can compare 2 versions of either commits or branches by using the Git diff command.

git diff --stat branch1...branch2
git diff --stat commit_hash1...commit_hash2

You can also explore Bitbucket Pipelines (if you haven't used it) to automate it for you. The idea is to run a Pipelines build by comparing those 2 branches or commits and optionally save the result somewhere.

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

Regards,
Mark C

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,158 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