pathScripts/up

24 lines
462 B
Text
Raw Normal View History

2024-06-23 22:47:43 +02:00
#!/bin/bash
# Navigate to your project directory
cd ~/workshop/sijapi
# Pull the latest changes from the repository
echo "Pulling from main branch..."
git pull origin main
# Add changes to the Git index (staging area)
echo "Adding all changes..."
git add .
# Commit changes
echo "Committing changes..."
git commit -m "Auto-update: $(date)"
# Push changes to the remote repository
echo "Pushing all changes..."
git push origin main
echo "Update complete!"