E575 n · Dollbug/pp-git-cli@c03cd72 · GitHub
[go: up one dir, main page]

Skip to content

Commit c03cd72

Browse files
author
chenxf
committed
n
1 parent f46f06e commit c03cd72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ function updateCode({ commit = "update" } = {}) {
1515
execSync(`git commit -m "${commit}"`);
1616
execSync(`git pull origin ${currentBranch}`);
1717
execSync(`git push origin ${currentBranch}`);
18+
}else{
19+
console.log("当前没有需要提交的代码哦~")
1820
}
1921
}
2022

0 commit comments

Comments
 (0)
0