Skip to content

Instantly share code, notes, and snippets.

View martinec's full-sized avatar
🚀
Turning data into Knowledge

Cristian Martinez martinec

🚀
Turning data into Knowledge
View GitHub Profile
@martinec
martinec / .gitignore.local for gitignore.io
Last active May 11, 2021 14:19
.gitignore.local for gitignore.io
git config --global alias.ignore-create '!gi() { \
if [ $# -eq 0 ]; then \
echo "Usage: git ignore-create list-item,...\n" ;\
echo "Avalaible list items:" ;\
curl -sL "https://www.gitignore.io/api/list" | tr -d "\n" ;\
echo "" ;\
else \
echo "# DO NOT EDIT THIS FILE" ;\
echo "# Put your local changes on .gitignore.local, then\n" ;\
echo "# To update type: git ignore-update" ;\