Skip to content

Instantly share code, notes, and snippets.

@CjS77
Created July 2, 2018 09:36
Show Gist options
  • Save CjS77/2d0621f108466858e7cadf5af7ea428b to your computer and use it in GitHub Desktop.
Save CjS77/2d0621f108466858e7cadf5af7ea428b to your computer and use it in GitHub Desktop.
Add intelliJ files to git/.exclude to avoid polluting .gitignore
#!/bin/bash
# I stick this in ~/.local/bin (which is part of my path), then simply running `githide` in the project folder
# will clean up your git status
echo ".DStore" >> .git/info/exclude
echo ".idea" >> .git/info/exclude
echo "*.iml" >> .git/info/exclude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment