title: Make changes to a git submodule and then add those into my main project
body: <p>I have a git project P. Within my project P is a submodule Q that was cloned off a 3rd party library's master branch.</p>
  
  <pre><code>P
  |
   - src
   - Vendor
      |
       - Q
  </code></pre>
  
  <p>I do not have permission to make push any changes to the 3rd party library's remote repo.</p>
  
  <p>I made some fixes in <code>Q</code> and I now want those to be pushed into the <code>master</code> branch of my project <code>P</code> so my team members can use them too.<br>
  Currently I am developing on my '<code>dev</code>' branch.</p>
  
  <p>I tried the following steps from within <code>P</code>:</p>
  
  <ol>
  <li><code>cd Vendor/Q</code></li>
  <li><code>git branch my-fixes</code></li>
  <li><code>git checkout my-fixes</code></li>
  <li>Make fixes</li>
  <li><code>git add</code> </li>
  <li><code>git commit -m 'My fixes to 3rd Party Library Q'</code></li>
  <li><code>cd ../..</code></li>
  <li><code>git add Vendor/Q</code></li>
  <li><code>git commit -m 'Changes/fixes made to submodule Q'</code></li>
  <li><code>git push</code></li>
  </ol>
  
  <p>However, this does not seem to solve my problem. Can someone help me out?</p>