Revert to an old commit in Bitbucket
<p>I have git setup on my web hosting and on an account at Bitbucket which are both linked.</p>

<p>How can I revert back to my first commit on both my hosting (which I am logged into via SSH and has git installed ready and working) and on Bitbucket?</p>

<p>I have tried: <code>git checkout 965a793</code></p>

<p>Then I tried with a dot on the end: <code>git checkout .</code></p>

<p>but nothing seems to change on the Bitbucket side, when I got to git push. It says everything is up to date, even though Bitbucket is on commit <code>cf08232</code></p>

<p>Here is a list of my three commits:</p>

<pre><code>cf08232 remove the txt file
096d08f test.txt edited online with Bitbucket
965a793 Initial Commit
</code></pre>