Skip to content

Instantly share code, notes, and snippets.

# creates a new gitignore file that ignores everything except the gitignore file itself
add_gitignore()
{
directory=$1
if [[ "$directory" == "" ]]
then
directory="."
fi