Initial check-in
This commit is contained in:
11
git_scripts/ignore_a_tracked_file.sh
Normal file
11
git_scripts/ignore_a_tracked_file.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user