title: visual studio code Git "revert commit (via terminal)" deleted my files
body: <p>My Git experience is very limited, On visual studio code:
  I did a lot of changes to my repository and then 
  I committed them (no push).</p>
  
  <p>There is a visual studio extension called GitLens:
  I right click my commit and clicked "Revert Commit (via terminal)"</p>
  
  <p>This ran the following command </p>
  
  <pre><code>-&gt; git revert -e bdb001d91a63c1e898da18c54916a8834579d20b
  </code></pre>
  
  <p>which deleted the files and reset the files to the version before commit. I don't want this to happen</p>
  
  <p>Is there a way to restore the commit that I have reverted back?
  Thanks</p>
  
  <p>according to this question <a href="https://stackoverflow.com/questions/3662543/is-there-any-way-to-undo-the-effects-of-git-revert-head">Is there any way to undo the effects of &quot;git revert head&quot;?</a></p>
  
  <p>I tried </p>
  
  <pre><code>--&gt;git reset --hard HEAD^
  --&gt; HEAD is now at 1fd24c8 fix folder
  </code></pre>
  
  <p>also </p>
  
  <pre><code>--&gt; git revert --abort
  --&gt; error: no cherry-pick or revert in progress
  --&gt; fatal: revert failed
  
  --&gt; git log -5
  commit 1fd24c8c4c4ef95f954e5b6af94ad0dedfbbf5f0 (HEAD -&gt; master, origin/master)
  Author: xxxxxxxxxxxxx
  Date:   Thu Oct 25 23:24:13 2018 +0200
      fix folder
  
  commit ec426d893f254e88f488be8bb3e2de781dfbc446
  Author: xxxxxxxxxx
  Date:   Thu Oct 25 23:19:26 2018 +0200
      firstcommit repname
  </code></pre>