Reputation: 12251
I'm looking to push my branch to a remote, but I don't wish to include all the files in the branch, but I do wish to keep track of them here.
Is there a way to do this with a filter, or do I need to create a new branch for this? All the stuff I've read seems to talk about completely removing the files, I just don't want them pushed.
A partial push - a nudge, if you like :)
Upvotes: 4
Views: 1069
Reputation: 74282
Partial pushes are not possible. The best you could do is create a new branch with the specific files and push it.
If partial pushes were possible, the remote branch and the local branch would have different SHA-1 IDs which clearly shows that the branches differ. Hence, create and push a new branch.
Upvotes: 5