git stash throws error No local changes to save
<p>I have added a new file to my local branch. On running the command <code>git status</code> it gives below output:</p>

<pre><code># On branch MyLocBranch
# Untracked files:
#   (use "git add &lt;file&gt;..." to include in what will be committed)
#
#   mypath/nextDir/myfile.py
nothing added to commit but untracked files present (use "git add" to track)
</code></pre>

<p>This is fine as I have untracked file and it shows in red in the terminal. </p>

<p>Now to stash this changes, I ran the commands <code>git stash</code> and <code>git stash save "some message"</code>. But I get the error <code>No local changes to save</code> which is weird. The changes should have been stashed.</p>