How to revert a GitHub repo to a certain commit : <p>I've been committing changes inside my GitHub repo. I now want to roll back to a certain commit that I've made sometime ago.</p>

<p>How do I reset my repo so that all the commits I've made, after the one i'd like to go back to, are wiped?</p>

<p>I've found some answers regarding <code>git reset --hard &lt;id&gt;</code> but it's not doing what I want.</p>
