我在 git commit 期间遇到问题请参阅下面的详细信息。
git push origin master
加工..
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to ssh://[email protected]:29418/LiveProject.git
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
FATAL ERROR: Network error: Connection reset by peer.
请指教。
答案1
确保您可以连接到远程,ping 远程应该成功
ping 192.168.100.76
确保已正确配置 ssh 凭据/证书
确保用户有远程推送权限
阅读有关如何向远程 git 添加 ssh auth 证书的帮助
并将远程 uri 添加到本地 repo 配置中
检查此命令的输出是否已配置远程。
$git remote -v