#!/bin/bash length=${#1}; if [[ $length -eq 0 ]] then echo "Please specify a tracked file to ignore"; exit 1 fi git update-index --skip-worktree $1