【发布时间】:2022-02-14 01:28:58
【问题描述】:
此问题与another 几乎相同,但解决方案不起作用。
首先,让我向您展示我能想到的所有可能相关的内容:
$ unalias ssh git # Just making sure
$ unset git ssh # Making really, really sure
$ which ssh
/usr/bin/ssh
$ which git
/usr/bin/git
$ cat ~/.bashrc
# super minimal!
case $- in
*i*) ;;
*) return;;
esac
$ cat ~/.profile
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
source "$HOME/.bashrc"
fi
fi
问题来了:
$ git pull origin master
fatal: protocol error: bad line length character: ?]0;
# ... and then git hangs.
我正在使用的计算机从托管在 GitHub 和 AWS CodeCommit 上的所有存储库中获得相同的结果。
下面给出expected response:
$ ssh git@github.com
PTY allocation request failed on channel 0
Hi mslinn! Youve successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
问题今天出现了。昨天我到处更改了许多配置文件。今天我试图将它们全部反转,但显然至少还有一个。
另一台机器,不变,可以git pull来自所有回购,没有任何问题。
怎么回事?
【问题讨论】: