I have some files on my local branch that will not be changed from me in the future but they will be changed by the other developer. Currently i have to exclude these files from every push to origin.
What i want is to be able to atleast use gitignore in such a way that i add these files to gitignore and don't have to commit these files because if i commit them the staging build will crash.
I try to add them to gitignore but it asks me to commit and push which i cannot do, also because the other developer has to make changes to these files.
So, i can work with somehow not committing the gitignore file if it just take the burden of having to avoid committing 8-10 other files off my shoulders. Or maybe there is another solution in which i can tell git to ignore these files everytime when it commit? Open to a better solution.