agenda_culturel/scripts/check-untracked.sh
2025-05-03 11:32:58 +02:00

10 lines
283 B
Bash
Executable File

#!/bin/bash
untracked=$(git ls-files --others --exclude-standard)
if [ -n "$untracked" ]; then
echo "Error: The following files are untracked and not ignored:"
echo "$untracked"
echo "Please add them to Git or ignore them in .gitignore before committing."
exit 1
fi