Added local-ignore for ignoring local git files

pull/3/head
Robert R Evans 2010-10-04 12:47:25 -07:00
parent 70c3b523b3
commit 034a3b0362
1 changed files with 6 additions and 1 deletions

View File

@ -12,4 +12,9 @@ function git_first_push {
function git_remove_missing_files() {
git ls-files -d -z | xargs -0 git update-index --remove
}
}
# Adds files to git's exclude file (same as .gitignore)
function local-ignore() {
echo "$1" >> .git/info/exclude
}