I am using git with Source Tree.
I have made 3-4 changes to some files in a local copy of a branch. I will always need these changes locally but I want to never accidentally push it to remote. I can of course keep these changes uncommitted, but that way I risk losing the changes in case of an accidental discard or clean etc.
Is there any way I can mark some files for never being pushed.
Alternately is there any better way to achieve my purpose.
Some of these are file changes & some of these new files I have added to the local repository