Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# from
# Run the following command:
git config --global filter.gitignore.clean "sed '/#gitignore$/d'"
# Now, either add a local file in .git/info/attributes
echo "*.extension_to_be_ignored filter=gitignore" > ./.git/info/attributes
# or write into a file that will be part of your code
echo "path_to_file_with_the_ignore_directive filter=gitignore" > ./.gitattributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment