<p dir="auto">After initializing git repository, but before committing, I can select "Undo Last Commit" from the "..." menu. That fails, of course. The resulting git reset HEAD~ won't work if there are no commits.</p>
<p dir="auto">Undo Last Commit should be grayed out if HEAD doesn't have a parent.</p>
<p dir="auto">Here's the log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git init
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
git reset HEAD~
fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]'
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched."><pre class="notranslate"><code class="notranslate">git init
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
git reset HEAD~
fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]'
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should be fetched.
</code></pre></div>
<p dir="auto">on <a href="https://code.visualstudio.com/docs/languages/javascript" rel="nofollow">https://code.visualstudio.com/docs/languages/javascript</a></p>
<p dir="auto">"The typings are easily managed using TSD, the TypeScript Definition manager."</p>
<p dir="auto">But on <a href="https://github.com/Definitelytyped/tsd#readme">https://github.com/Definitelytyped/tsd#readme</a></p>
<p dir="auto">"DEPRECATED: TSD is deprecated, please use Typings and see this issue for more information."</p>