Files
ljwx-qwen-test/commit_and_push.sh

16 lines
369 B
Bash
Executable File

#!/bin/bash
# Script to automatically commit and push all changes
# Add all changes
git add .
# Get the current timestamp for the commit message
TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')
# Commit the changes
git commit -m "Auto-commit: $(hostname) - ${TIMESTAMP}"
# Push to remote repository
git push -u origin master
echo "Changes committed and pushed successfully!"