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: 

I can't just get the last commit on Bitbucket.

Ahm
May 3, 2024

I am using Bitbucket Server v7.13.0. I want to import the last commit and files on a repository to my locale, but it downloads all files on the repository. Even though I tried commands like --depth or filter-branch(prune) I got the same result. Do you have any solution suggestions for this?

 

Thanks.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Charlie Misonne
Community Champion
June 5, 2024

Hi!

Are you looking for a way to only get the files that were modified/ added in the latest commit?

That's not what --depth 0 is for. You will get the whole repository but not the whole history meaning the clone will be faster and you can not go back to another commit.

As far as I know there is no straight forward way to only get the files that were adapted in the latest commit.

Or am I misunderstanding you?

TAGS
AUG Leaders

Atlassian Community Events