how to version files ONLY locally with git

Viewed 91

I have a project with two branches foo and baar. In this project I have a config files database1.properties and database1.properties where data base properties are stored for example schema name and schema password. When I am working on foo branch, schema name is foo and password is foo and when I am working on baar branch schema name is baar and password is baar. How to tell git that these properties files are only for my local system and shouldn't be pushed to the origin repo? I use egit and also tortoiseGit.

2 Answers
Related