7

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,231
  • 1
  • 36
  • 72

1 Answers1

16

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
  • 879
  • 8
  • 14