title: What is difference between 'git reset --hard HEAD~1' and 'git reset --soft HEAD~1'?
body: <p>I tried to undo my commit in git. Is it dangerous to use <code>git reset --hard HEAD~1</code>?</p>
  
  <p>What is the difference between different options for <code>git reset</code>?</p>