【发布时间】:2020-05-14 11:38:27
【问题描述】:
相同的 git 命令序列在 Linux Ubuntu 上运行良好,但在 Windows 上不运行。在 Windows 上,我在 Git Bash 上尝试过,使用“以管理员身份运行”、Windows Powershell 和 Windows 命令行,使用“以管理员身份运行”。为什么?
git init
git remote add <remote name> <remote URL>
git pull <remote name> <remote branch>
在 Linux 中,这会产生对远程凭据的质询,然后产生远程存储库。在 Windows 中,这不会产生响应、错误和远程存储库。
【问题讨论】:
-
是的,“git bash”应该在 Windows 上工作,就像“git 命令”在 Windows 上一样。几乎任何其他 Windows 客户端也应该可以工作。建议: 1) 专注于 Git bash(从git-scm.com/downloads 下载)。 2) 尝试远程仓库的
git clone https:xxx。发生什么了? 3) 使用结果更新您的帖子。
标签: git