Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
data_report
/
daw
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e5cdaed7
authored
Jul 07, 2026
by
江名洋
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor(commit): 改为提交所有改动
1 parent
001f4e43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
commit_uploads.sh
commit_uploads.sh
View file @
e5cdaed
#!/bin/bash
#!/bin/bash
# 提交本地
upload 文件
到远程仓库
# 提交本地
所有改动
到远程仓库
# 用法: bash commit_uploads.sh [commit message]
# 用法: bash commit_uploads.sh [commit message]
set
-e
set
-e
MSG
=
"
${
1
:-
chore
:
update
upload files
$(
date
'+%Y-%m-%d %H:%M'
)}
"
MSG
=
"
${
1
:-
chore
:
update
$(
date
'+%Y-%m-%d %H:%M'
)}
"
echo
"========================================="
echo
"========================================="
echo
" 1. 提交
uploads/ 文件
"
echo
" 1. 提交
所有改动
"
echo
"========================================="
echo
"========================================="
git add
uploads/
git add
-A
if
git diff --cached --quiet;
then
if
git diff --cached --quiet;
then
echo
" 没有需要提交的变更,跳过"
echo
" 没有需要提交的变更,跳过"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment