mirror of
https://github.com/rommapp/docs.git
synced 2026-04-20 01:04:29 +08:00
17 lines
428 B
Bash
Executable File
17 lines
428 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Navigate to the /romm.wiki directory
|
|
cd "$(dirname "$0")/romm.wiki" || exit 1
|
|
|
|
# Check if the origin remote exists, if not add it
|
|
git remote | grep -q "^origin$" || git remote add origin git@github.com:rommapp/romm.wiki.git
|
|
|
|
# Add all files to git
|
|
git add .
|
|
|
|
# Commit changes with a timestamped message
|
|
git commit -m "Auto-commit: $(date '+%Y-%m-%d %H:%M:%S')"
|
|
|
|
# Push to the master branch
|
|
git push origin master
|