The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

jetty ramu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events