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
|
||||
3
git_scripts/list_tracked_files_under_main_branch.sh
Normal file
3
git_scripts/list_tracked_files_under_main_branch.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
git ls-tree -r main --name-only
|
||||
11
git_scripts/unignore_a_tracked_file.sh
Normal file
11
git_scripts/unignore_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 --no-skip-worktree $1
|
||||
Reference in New Issue
Block a user