title: Why does Git tell me "No such remote 'origin'" when I try to push to origin?
body: <p>I am very new to Git; I only recently created a GitHub account.</p>
  
  <p>I've just tried to push my very first repository (a sample project), but I'm getting the following error:</p>
  
  <pre><code>No such remote 'origin'
  </code></pre>
  
  <p>I ran the following commands:</p>
  
  <pre><code>git init
  git commit -m "first commit"
  git remote add origin https://github.com/VijayNew/NewExample.git
  git push -u origin master
  </code></pre>
  
  <p>However, when I ran git commit -m "first commit", I got the following message:</p>
  
  <pre><code>nothing added to commit but untracked files present (use "git add" to track)
  </code></pre>
  
  <p>So then I tried to set <code>origin</code>, using</p>
  
  <pre><code>git remote set-url origin https://github.com/VijayNew/NewExample.git
  </code></pre>
  
  <p>But I got the following error:</p>
  
  <pre><code>No such remote 'origin'
  </code></pre>
  
  <p>What did I do wrong, and what should I do?</p>