【问题标题】:git commands not working in git bash (windows 7 x64)git 命令在 git bash 中不起作用(Windows 7 x64)
【发布时间】:2012-04-26 14:27:56
【问题描述】:

我按照帮助 http://help.github.com/win-set-up-git/ 用于在 Windows 7 x64 上安装 git (msysgit)。

在设置我的帐户之前一切顺利。

但是当我尝试git config --global user.name ...... 时,git bash 总是向我显示 git 的用法,简而言之就是帮助。 每个命令(status--versiondiffhelpstatus,...)都显示相同的消息: usage: git [--version] [--exec-path.......] ....

ssh 运行良好,因为我可以参数化 ssh 密钥。 如果我在 git 中输入错误的“sit”:找不到命令

感谢您的帮助。 我想我可能错过了安装中的一个选项。

【问题讨论】:

  • 你能把 ~/.gitconfig 里面的东西粘贴进去吗?
  • [core] symlinks = false autocrlf = true [color] diff = auto status = auto branch = auto interactive = true [pack] packSizeLimit = 2g help center format = html [http] sslCAinfo = / bin/curl-ca-bundle.crt [sendemail] smtpserver = /bin/msmtp.exe [diff "astextplain"] textconv = astextplain [rebase] autosquash = true
  • 来自 git config ... 的条目进入 ~/.gitconfig,因为你没有这个,我假设没有正确配置。你能下载 git 扩展,它给你一种配置东西的 ui 选项吗?

标签: git windows-7 installation


【解决方案1】:

我遵循在 windows 7 x64 上安装 git (msysgit) 的帮助。

除非您正在开发 Git,否则您不应该安装 msysgit

您应该安装 Git for Windows

code.google.com/p/msysgit/downloads/list?q=windows+installer

【讨论】:

    猜你喜欢
    • 2012-08-01
    • 1970-01-01
    • 2016-09-29
    • 2019-03-31
    • 2021-08-19
    • 2017-01-12
    • 2016-02-19
    • 2018-06-21
    • 2015-08-08
    相关资源
    最近更新 更多