title: how can git checkout HEAD~2 go 10 commits back
body: <p>There's a remote branch <code>my-issue-branch</code> and a local branch of the same name. We performed </p>
  
  <p><code>git pull --rebase</code></p>
  
  <p>to get the latest commits locally, but the two last commits are breaking the build. We want to go 2 commits back to build the project and do </p>
  
  <p><code>git checkout HEAD~2</code></p>
  
  <p>which takes us about 10 commits back, instead of just two.</p>
  
  <p>Only</p>
  
  <p><code>git checkout &lt;commit-hash&gt;</code></p>
  
  <p>helps the situation.</p>
  
  <p>Keeping in mind, that four people work on this branch, what can be wrong?</p>