u
This commit is contained in:
parent
511136ec21
commit
c2c8ad6c93
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user