Web Update
This commit is contained in:
37
scripts/quick_commit.sh
Executable file
37
scripts/quick_commit.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Quick Git Commit Script
|
||||
# Usage: ./quick_commit.sh "Your commit message"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: ./quick_commit.sh \"Your commit message\""
|
||||
echo ""
|
||||
echo "Current changes:"
|
||||
git status --short
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMMIT_MSG="$1"
|
||||
|
||||
echo "Adding all changes (excluding logs)..."
|
||||
|
||||
# Add specific files (excluding logs)
|
||||
git add frontend/public/*.png
|
||||
git add frontend/public/*.ico
|
||||
git add frontend/public/manifest.json
|
||||
git add frontend/public/index.html
|
||||
git add frontend/src/
|
||||
git add backend/*.py
|
||||
|
||||
echo ""
|
||||
echo "Committing: $COMMIT_MSG"
|
||||
git commit -m "$COMMIT_MSG"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ""
|
||||
echo "✓ Committed successfully!"
|
||||
git log -1 --oneline
|
||||
else
|
||||
echo ""
|
||||
echo "✗ Commit failed or nothing to commit"
|
||||
fi
|
||||
Reference in New Issue
Block a user