问题描述
hexo deploy,github能够正常的push文件,轮到coding时,则会报错。ssh检查过,github和coding都可以连接上$ ssh -T git@github.comHi Zohar727! You’ve successfully authenticated, but GitHub does not provide shell access.$ ssh -T git@git.coding.netHello zohar727! You’ve connected to Coding.net via SSH successfully!配置文件信息:
# Deployment## Docs: https://hexo.io/docs/deployment.htmldeploy: type: git repo: github: https://github.com/Zohar727/Zohar727.github.io.git,mastercoding: https://git.coding.net/zohar727/zohar727.git,master报错信息(github正常push,coding报错):
bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for ’https://git.coding.net/’: Invalid argumentFATAL Something’s wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.htmlError: bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for ’https://git.coding.net/’: Invalid argument at ChildProcess.<anonymous> (H:前端开发HEXOnode_moduleshexo-deployer-gitnode_moduleshexo-utillibspawn.js:37:17) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at ChildProcess.cp.emit (H:前端开发HEXOnode_moduleshexo-deployer-gitnode_moduleshexo-utilnode_modulescross-spawnlibenoent.js:40:29) at maybeClose (internal/child_process.js:829:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)FATAL bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for ’https://git.coding.net/’: Invalid argumentError: bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for ’https://git.coding.net/’: Invalid argument at ChildProcess.<anonymous> (H:前端开发HEXOnode_moduleshexo-deployer-gitnode_moduleshexo-utillibspawn.js:37:17) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at ChildProcess.cp.emit (H:前端开发HEXOnode_moduleshexo-deployer-gitnode_moduleshexo-utilnode_modulescross-spawnlibenoent.js:40:29) at maybeClose (internal/child_process.js:829:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
配置文件信息那里做过很多尝试:把https换成ssh 无效把coding的分支换成 coding-pages 无效
问题解答
回答1:这个问题可以换个思路,你用hexo backup这个插件应该就可以解决。
回答2:我建议你还是创建两个文件仓库比较好,一个github一个coding