Harsha M V
Harsha M V

Reputation: 54949

Git Exclude Commiting the Database File

I am using Laravel and working with a team of three. The local set up for database would be different for each of his in terms of database.

So i want to ignore the database config file to be committed. When i do a git status i always see the database.php file in the list. How can i tell GIT to ignore it complete from committing or downloading the initial commit from bitbucket as well.

enter image description here

Upvotes: 0

Views: 91

Answers (1)

escitalopram
escitalopram

Reputation: 3856

git update-index --assume-unchanged app/config/database.php

Upvotes: 1

Related Questions