Skip to content

Instantly share code, notes, and snippets.

@danilocandido
Last active December 20, 2018 18:30
Show Gist options
  • Save danilocandido/f93b50dcc8985e1291807955947c9122 to your computer and use it in GitHub Desktop.
Save danilocandido/f93b50dcc8985e1291807955947c9122 to your computer and use it in GitHub Desktop.
Git ignore local files > .git/info/exclude
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