Commit only specific path and file to Git?
<p>I'm trying to push just the changed files in a project and their related paths to a specific branch in a remote repo. However, I always get all the files in the project. So, if I make a change to <code>resources/views/index.php</code> and I want to have just that folder path and file in a branch <code>limited1</code>, I've been doing this:</p>

<pre><code>git add resources/views/index.php
git commit -m "Path and File only"
git push master limited1
</code></pre>

<p>As I said, this puts up all the files in the project into the limited1 branch. How do limit the remote branch to just the changed files and their corresponding paths?</p>

<p>Hitting my head against this wall for several hours now and would any help.</p>