12 lines
157 B
Bash
12 lines
157 B
Bash
#!/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
|