This commit is contained in:
karim hassan
2025-08-18 19:30:47 +00:00
parent dd17d9f4bf
commit e3620c7f42
16 changed files with 562 additions and 0 deletions

16
sync2.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
MSG="${1:-chore: quick sync}"
# Sassure quon est dans un repo
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || { echo "Pas un dépôt Git"; exit 1; }
# Ajoute, commit et push
git add -A
if ! git diff --cached --quiet; then
git commit -m "$MSG"
else
echo "Rien à committer."
fi
git push
echo "✅ Sync OK"