_
我在 bitbucket 中有一个项目,我想从中克隆特定的提交
这些是提交,我希望没有最后两个
但在 SourceTree 中我看不到提交号 b6981f9
和 1fb876a
只是最后一个号码 da84f64
我想因为最后3个挤在一起,我该怎么办?
最佳答案
yes I want the whole repository except the last 2 commits, I don't need it, so how I can specific that cloning?
正常的方法是:
HEAD~2
git checkout -b newBranch @~2
除此之外:
I have partners in project but we got bug in the last 2 commits
因此,使用 SourceTree:
创建新分支后,工作并添加新提交,然后推送您的错误修复分支。
关于git - 克隆特定的提交位桶,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39813578/