【发布时间】:2021-09-12 13:46:14
【问题描述】:
该组织最近推出了一些 IT 更新 - 将我们所有的 PC 升级到 Windows 10,并审查和更新了它们的安全性、防火墙等。
这不是我的工作,所以不知道具体做了哪些更改。
我使用 Git Bash 从 GitHub 克隆了一个 repo,并配置了我的用户详细信息。
git clone https://github.com/.../... .git
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
我可以将文件添加到暂存区,提交 - 本地一切似乎都运行良好。我什至可以将远程更改拉到我的本地仓库。
但是,当我推动时,几乎没有发生任何事情并且它挂起。
git push -u origin main --verbose
Pushing to https://github.com/.../...
我必须用CTRL+C退出
当我尝试在本地初始化存储库并将其推送到 GitHub 上的空白存储库时,也会发生同样的情况,例如 https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line
根据文档,当组织网络管理员阻止某些流量时,可能会导致连接问题。 https://docs.github.com/en/get-started/using-github/troubleshooting-connectivity-problems
我的问题是;有没有办法在不询问网络管理员的情况下检查是否是这种情况?
【问题讨论】:
-
您能否在计算机以外的任何设备上重现此行为?
-
这可能是 Windows 凭据管理器中的一个众所周知的错误:stackoverflow.com/q/68057254/7976758
标签: git github firewall git-push