6

I have like 4 guys in my team and they constantly have to change the socket of the database because they have different paths for it, well it is becoming annoying, I tried to add database.yml to the .gitignore:

/config/database.yml

But for some weird reason when I edit the file and make a git statusit still is being tracked!! can someone tell me what could be?

svelandiag
  • 4,201
  • 1
  • 33
  • 66

1 Answers1

14

Try this:

$ echo config/database.yml >> .gitignore
$ mv config/database.yml config/database.yml.example
$ git add .
$ git commit -am "put database.yml to .gitignore and and rename"
$ cp config/database.yml.example config/database.yml
sugaryourcoffee
  • 849
  • 8
  • 13