gpt4 book ai didi

Git pull 和推不起作用

转载 作者:行者123 更新时间:2023-12-04 18:43:57 29 4
gpt4 key购买 nike

我不明白为什么这个命令不起作用。请问有人遇到这种情况吗?
参数 :
Apache/2.4.29 (Ubuntu)
php.7.4.7
git 版本 2.17.1

git status, git checkout, git branch
工作但 git pull origin master, git push origin master不工作。我在谷歌上找不到答案。
错误:

ssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.


编辑:
我找到了这个,但它对我不起作用: link
我收到超时错误:

ssh: connect to host ssh.github.com port 443: Connection timed outfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.


请帮帮我

最佳答案

首先我会检查git remote show origin以确保 URL 正确。
如果 URL 正确,那么您可能没有编辑该存储库的权限。关注 these instructions将 SSH key 添加到您的 Github 帐户。

关于Git pull 和推不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62617203/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com