Skip to content

Instantly share code, notes, and snippets.

@varhub
Last active December 5, 2015 10:42
Show Gist options
  • Save varhub/fea251e57c225a63dabb to your computer and use it in GitHub Desktop.
Save varhub/fea251e57c225a63dabb to your computer and use it in GitHub Desktop.
A script to simplify gitignore population
#!/bin/sh
#
# Copyright (c) 2015
# Author: Victor Arribas <v.arribas.urjc@gmail.com>
# License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
#
# Usage:
# add_to_ignore.sh https://github.com/github/gitignore/blob/master/C++.gitignore
set -e
get_from_internet(){
echo "# $1"
wget -O- $1
echo
echo
}
get_from_internet $1 >> .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment