7 lines
198 B
Bash
7 lines
198 B
Bash
|
#!/usr/bin/env bash
|
||
|
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||
|
cd $GIT_DIR
|
||
|
git add .
|
||
|
git commit -m "Automated backup: $(date +'%Y-%m-%d %H:%M:%S')"
|
||
|
git push origin main
|