TortoiseGit克隆并推送克隆回购。 我正在使用ToroiseGit和msysgit。使用有效密钥。
控制台东西(git-cmd.bat)正常工作! 但TortoiseGit不是,这有什么不对?
fatal: 'myrepo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
git did not exit cleanly (exit code 128) (1734 ms @ 20.11.2013 2:26:18)
在/var/log/auth.log
我看到了:
Nov 20 05:36:06 myserver sshd[23529]: Accepted publickey for root from 22.228.217.4 port 52760 ssh2
Nov 20 05:36:06 myserver sshd[23529]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 20 05:36:06 myserver sshd[23529]: pam_unix(sshd:session): session closed for user root
为何选择root?
答案 0 :(得分:0)
请记住,如果你使用putty和TortoiseGit,并且你已经在url(root@myhost.com)中用putty 和用户名保存了会话 - TortoiseGit将参加此会话并尝试以您的用户身份登录,但您在repo-url中设置的用户除外。阅读更多@ https://tortoisegit.org/docs/tortoisegit/tgit-ssh-howto.html