Created
April 6, 2020 18:45
-
-
Save juliedavila/2b5e0d7b3d33c209a7d9c5a4df20c3fe to your computer and use it in GitHub Desktop.
BASH one-liner to automatically ignore what appears in your .gitignore when using git archive; ignores comment lines
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
| grep "^[^#]" .gitignore | xargs -I {} echo "{} export-ignore" > .gitattributes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment