Last active
December 20, 2018 18:30
-
-
Save danilocandido/f93b50dcc8985e1291807955947c9122 to your computer and use it in GitHub Desktop.
Git ignore local files > .git/info/exclude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open your file .git/info/exclude | |
Normaly, I used to exclude database.yml | |
add this line bellow | |
config/database.yml | |
Close the file and make sure you run | |
git update-index --assume-unchanged config/database.yml | |
# Reference | |
https://stackoverflow.com/questions/1753070/how-do-i-configure-git-to-ignore-some-files-locally |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment