clone specific commit bitbucket

_

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

  • Push full project not just changes using ftploy
  • Could not resolve host: bitbucket.org; nodename nor servname provided, or not known
  • How to undo a merge on Bitbucket?
  • SourceTree considers pulled files as uncommitted changes
  • Build job jenkins at specific commit to bitbucket
  • All lines removed from file and all lines added to file in commit
  • enter image description here

    butin SourceTree I can’t see the commits number b6981f9 and 1fb876a
    just the last number da84f64
    enter image description here

    I think because the last 3 pushed together, what I should do?

  • Git, Create a clone/fork but keeping my projects “origin-parts” updated from the source?
  • How to properly rebase in SourceTree?
  • Git Workflow based on feature branches
  • Download a Git repo from BitBucket
  • git: start a comment with # when using vim
  • Can I undo the last git push?
  • One Solution collect form web for “clone specific commit bitbucket”

    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:

    • clone everything
    • checkout a new branch (or reset the current branch) to HEAD~2

      git checkout -b newBranch @~2
      

    Other than that:

    • shallow clone allows you to get the last n commits (which is not what you want)
    • sparse checkout is about subfolders (not sub-commits)
    • fetch single commit would not get all commits but some.

    I have partners in project but we got bug in the last 2 commits

    So, with SourceTree:

    • clone the repo (normal clone)
    • select the commit from which you want to work: double-click the commit to check it out, then click ‘Branch’.

    Once you have created an new branch, work and add new commits, then push your bugfix branch.

    Git Baby is a git and github fan, let's start git clone.