This commit is contained in:
陆柯 2021-09-09 22:28:23 +08:00
parent 511136ec21
commit c2c8ad6c93
3 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
* -t, --type: web(默认) 或 git
* 如果是 git
* -r, --repo: 远程仓库,例如 'https://github.com/ORG/ORG.github.io'
* -b, --branch: 分支,默认为 master
* -b, --branch: 分支,默认为 main
* -n, --gitname
* -e, --gitemail
* 如果是 web

View File

@ -220,7 +220,7 @@ function deployToGit(connection){
return {
url: url,
branch: branch || 'master'
branch: branch || 'main'
}
}
@ -261,7 +261,7 @@ function deployToGit(connection){
help += 'You have to configure the deployment settings in config files or command line first!\n\n'
help += 'Example:\n'
help += ' node deploy.js -t git -r https://github.com/OWNER/OWNER.github.io -b master -f ./dist'
help += ' node deploy.js -t git -r https://github.com/OWNER/OWNER.github.io -b main -f ./dist'
console.log(help)
return

View File

@ -17,8 +17,8 @@
"chalk": "^2.4.2",
"commander": "^3.0.1",
"deepmerge": "^4.0.0",
"hexo-fs": "^2.0.0",
"hexo-util": "^1.1.0",
"hexo-fs": "^3.1.0",
"hexo-util": "^2.5.0",
"moment": "^2.24.0",
"node-ssh": "^8.0.0",
"swig-templates": "^2.0.3"