#!/bin/sh # Usage: git-ignore ,,... # Add files to the current Git repo's exclude list for pattern in "$@" do echo "$pattern" | tee -a .git/info/exclude done