$git branch stable development
I have properties file which has password for Database connection, now I had to change the properties file (say xyz.properties) for password. So that i can use on local server. and added this file path into .gitignore and $git update-index --assume-unchanged xyz.properties
$git status On branch stable Your branch is up-to-date with 'origin/stable'. nothing to commit, working directory clean
Now i wanted to change ...branch to development $git checkout development
error: Your local changes to the following files would be overwritten by checkout: .gitignore x/y/z/xyz.properties
Please, commit your changes or stash them before you can switch branches. Aborting
Now I want to change branch to development and make branch and work on them.
So how can i achieve this task...please help me out. Thanks in Advance
Edit when i tried $git stash No local changes to save
Note: I need to use local server from every branch , which required my xyz.properties files to be modified because my local db has different password then repository.