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

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

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events