尝试使用-tssh选项:
-t Force pseudo-tty allocation. This can be used to execute arbi-
trary screen-based programs on a remote machine, which can be
very useful, e.g. when implementing menu services. Multiple -t
options force tty allocation, even if ssh has no local tty.
似乎没有相应的选项~/.ssh/config,因此您需要创建一个shell脚本.一个简单的是:
#!/bin/sh
ssh -t "$*"
Run Code Online (Sandbox Code Playgroud)
把它保存为ssh-t或者某种东西,chmod +x ssh-t把它放在你的某个地方PATH.然后设置GIT_SSH=ssh-t告诉Git使用这个脚本.
| 归档时间: |
|
| 查看次数: |
4466 次 |
| 最近记录: |