title: Delete commit on gitlab
body: <p>How can I delete a commit that I made on <code>GitLab</code>? This commit that I made is not the HEAD now. </p>
  
  <p>If I can't delete it, can I edit? </p>
  
  <p>When it was the HEAD, I tried:</p>
  
  <pre><code>git reset  --soft HEAD
  
  git reset  --soft HEAD^1
  
  git revert HEAD
  
  git rebase -i HEAD
  
  git rebase -i HEAD~1
  
  git reset --hard HEAD
  
  git reset --hard Id-Code
  </code></pre>
  
  <p>I already tried to rebase it, but it still stays on the branch. Now I just removed it from the HEAD, but it is still there.</p>
  
  <p>There is another command?</p>