You need to separate from the master. Check out the new branch and delete the files you do not want.
git checkout master
Once the master:
git checkout -b new_branch
rm foo.txt
rm foo2.txt
git add -u
git commit -m "removed foo and foo2"
git push origin new_branch
source
share