歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> "fatal: protocol error: bad line length character: No This",fatallength

"fatal: protocol error: bad line length character: No This",fatallength

日期:2017/3/3 17:38:42   编辑:學習Linux

"fatal: protocol error: bad line length character: No This",fatallength

"fatal: protocol error: bad line length character: No This",fatallength


git clone 遠程地址時候出現 "fatal: protocol error: bad line length character: No This" 錯誤

在stackoverflow上查到的是修改~/.bashrc文件采用 echo "錯誤信息" 1&2>/dev/null 來忽略錯誤提示

我出現這種問題的原因是:

/etc/passwd文件裡面

git:x:501:502::/home/git:/sbin/nologin

修改成為

git:x:501:502::/home/git:/usr/local/git/bin/git-shell

查找自己系統上安裝的git-shell路徑方法為

locate git-shell

我的搜索結果是/usr/local/git/bin/git-shell

希望我的解決辦法對你能有所幫助。

http://xxxxxx/Linuxjc/1190992.html TechArticle

Copyright © Linux教程網 All Rights Reserved