title: Do you ignore a git submodule in your .gitignore or commit it to your repo?
body: <p>I've added a submodule to my project in <code>project_dir/vendor/submodule_one</code> now each time I run <code>git status</code> I get <code>modified: vendor/submodule_one (new commits)</code>.</p>
  
  <p>My question is whats the best way to deal with this? Do I add the <code>vendor/submodule_one</code>-folder to my <code>.gitignore</code> as my main project shouldn't need to know about the specifics of my submodule?</p>
  
  <p>Or when I'm changing and commiting changes to my submodule do I need to make commits in my main project also?</p>
  
  <p>Just getting started with submodules and couldn't seem to find much info beyond setting them up.</p>