title: What is the way to remove a git submodule as of git version 1.9.3?
body: <p>as of git version 1.9.3 (Apple Git-50)  on mac how do i remove a git submodule? I am reading alot of outdated information with many developers telling me they wont work.  What is the current way ?
   will <code>git deinit pathToSubModule</code>    do the trick ?</p>
  
  <p>The steps i thought would work are <a href="http://davidwalsh.name/git-remove-submodule" rel="noreferrer">here</a> but comments say they wont. </p>
  
  <p>Let me explain my current situation and what i need accomplished.  I've installed <a href="https://github.com/Quick/Quick#how-to-install-quick" rel="noreferrer">the Quick repository</a> and added it to as submodule to my project.  This code is already checked in and others are using it.  What i now need to do is <em>fork</em> the same Quick repository and host it on a more secure github that my company has (so a completely other private github). After forking it i want to add that fork as a gitSubmodule and let it replace the current Quick submodule i had installed previously. </p>
  
  <p>update: i've read that the following is the correct way on latest git version please confirm?</p>
  
  <pre><code>To remove a submodule added using:
  
  git submodule add blah@blah.com:repos/blah.git lib/blah
  Run:
  
  git rm lib/blah
  That's it.
  
  For old versions of git (circa ~1.8.5) use:
  
  git submodule deinit lib/blah
  git rm lib/blah
  git config -f .gitmodules --remove-section submodule.lib/blah
  </code></pre>