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

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

jetty ramu July 27, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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
AUG Leaders

Atlassian Community Events