mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 05:45:11 +01:00
Clean git tree from untracked changes
This commit is contained in:
14
bin/git_clean
Executable file
14
bin/git_clean
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git clean -d -x -n
|
||||||
|
|
||||||
|
echo "Continue the real cleanup of the tree? [y/N]"
|
||||||
|
|
||||||
|
read -n 1 answer
|
||||||
|
|
||||||
|
if (( ${#answer} && (( "$answer" == "Y" || "$answer" == "y" )) )); then
|
||||||
|
echo "Cleaning up"
|
||||||
|
#git clean -d -x -f
|
||||||
|
else
|
||||||
|
echo "Aborted"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user