14 lines
287 B
Bash
Executable File
14 lines
287 B
Bash
Executable File
#!/bin/bash
|
||
# push.sh
|
||
# -----------
|
||
# 用途:一键提交并推送当前目录下所有git更改。
|
||
# 用法:
|
||
# ./push.sh "commit message"
|
||
# # 若不传参数,默认commit message为'update'
|
||
|
||
#!/bin/bash
|
||
git add .
|
||
msg="${1:-'update'}"
|
||
git commit -m "$msg"
|
||
git push origin main
|