【发布时间】: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、--version、diff、help、status,...)都显示相同的消息:
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