Last active 1747238670

liueic's Avatar liueic revised this gist 1747238669. Go to revision

1 file changed, 13 insertions

auto_git.sh(file created)

@@ -0,0 +1,13 @@
1 + #!/bin/bash
2 +
3 + # 获取当前时间戳(格式:YYYY-MM-DD HH:MM:SS)
4 + timestamp=$(date "+%Y-%m-%d %H:%M:%S")
5 +
6 + # 添加所有更改
7 + git add .
8 +
9 + # 提交更改
10 + git commit -m "vault backup:$timestamp"
11 +
12 + # 推送到远程仓库(默认 origin 主分支 main 或 master)
13 + git push
Newer Older