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 resources/views/index.php
and I want to have just that folder path and file in a branch limited1
, I've been doing this:
git add resources/views/index.php
git commit -m "Path and File only"
git push master limited1
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?
Hitting my head against this wall for several hours now and would any help.