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: 

Why the bitbucket diff is showing difference which is already present in the destination branch?

archana.bahadur
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!
April 28, 2022

Why the bitbucket diff is showing difference which is already present in the destination branch? This is quiet frequent now.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 2022

Hi @archana.bahadur,

1) I see that your question has the tag 'bitbucket-cloud', but I do not see a Bitbucket Cloud account associated with the email of your community account. Could you please confirm if the issue concerns indeed Bitbucket Cloud (https://bitbucket.org/) or Bitbucket Server (self-hosted instance)?

2) If you run the following command locally

git diff destination_branch...source_branch -- /path/to/file.txt

where
destination_branch replace with the name of your destination branch
source_branch replace with the name of your source branch
/path/to/file.txt replace with the path and name of the file in your repo whose diff doesn't show as you expect

Do you see the same diff for the file locally that you see in Bitbucket UI?

3)  What is the kind of changes displayed in the diff (which shouldn't be there)?
Is it addition of new lines in files?
Removal of lines in files?
Addition of a file?
Or removal of a file?

Kind regards,
Theodora

TAGS
AUG Leaders

Atlassian Community Events