I am one of the developer of ruby on rails project both three of us have different database configuration. My question is how can i ignore database.yml file and prevent it of being pushed to the repository.I tried to add it in the .gitignore file and put a line their like this
#ignore database connection
/config/database.yml
but when i use git commit -am "my message"
and then git push --all
but then the database.yml
file is also push to repository.can someone give me some tips on how to use git in a much efficient and faster way,because i always use git commit -am "my message"
then git push --all
to push all my changes but if i do this database.yml
file will also be pushed to the repository.Since i am new to git i dont have much experience on using this since no one really give me explainations on the proper way of using git.