title: Delete deleted files/folder when updating a git repo
body: <p>I created a git repo and commited files/folder, after some time a deleted a folder from my local git folder and in try to update the repo I run the commands -</p>
  
  <pre><code>git add .
  git commit -m "second commit"
  git remote add origin https://github.com/trialcode/test.git
  git push -u origin master
  </code></pre>
  
  <p>But the removed folder is still shown there in my git repo although the files were updated. Let me know what I am doing wrong with the git files/folder update.</p>
  
  <p><strong>FYI</strong> - I tried <code>git branch -d folder_to_remove/</code>
  but it is throwing an error - <code>error: branch 'folder_to_remove/' not found</code>.</p>