1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Clean git tree from untracked changes

This commit is contained in:
2015-06-15 14:13:59 +02:00
parent 370794eb6f
commit 21f1884f7d

14
bin/git_clean Executable file
View 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