Reputation: 731
_
I have an project in bitbucket and I want to clone specific commit from it
these are the commits, I want without the last two of them
butin SourceTree I can't see the commits number b6981f9
and 1fb876a
just the last number da84f64
I think because the last 3 pushed together, what I should do?
Upvotes: 4
Views: 11029
Reputation: 1329692
yes I want the whole repository except the last 2 commits, I don't need it, so how I can specific that cloning?
The normal way is to:
checkout a new branch (or reset the current branch) to HEAD~2
git checkout -b newBranch @~2
Other than that:
I have partners in project but we got bug in the last 2 commits
So, with SourceTree:
Once you have created an new branch, work and add new commits, then push your bugfix branch.
Upvotes: 5