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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to check who deleted a specific file if you don't know the commit, data and even branch?

How to check who deleted a specific file if you don't know the commit, data and even branch?

1 answer

0 votes
Caroline R Atlassian Team Sep 16, 2021

Hi, @Akarshit Verma! Welcome to the community! 

If you have the file name, you can run the following command to see the changes of this file even if the file was deleted:

git log --full-history  -- filename

In case you would like to see just the last commit, which deleted the file, use -1 in the command above:

git log --full-history -1 -- {file name}

This will show you the author and the date of this commit.

I hope this helps, but do let me know if you have any questions. 

Kind regards,
Caroline

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,805 views 10 16
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