【发布时间】:2015-11-24 16:00:42
【问题描述】:
我从here 在我的 Windows 7 中安装了 GitHub Desktop 应用程序,然后重新启动了我的笔记本电脑。我转到 Windows cmd 并输入 git clone https://github.com/myName/myAwesomeProject.git,然后我得到 'git' is not recognized as an internal or external command, operable program or batch file.。
所以我搜索了一下,发现我必须重新设置 PATH from here。我去了C>Program Files (x86),那里没有Git文件夹。我不知道为什么。我在 C 中搜索“Git”并在这里找到它 C:\Users\nerd\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad ,我将它复制到我的 PATH 中,重新启动笔记本电脑并克隆现在可以工作。
我的问题是,为什么 Git 安装在那个位置而不是 Program Files?我做错什么了吗?这会在未来造成问题吗?
【问题讨论】:
-
这么多相互矛盾的意见,为什么他们(git人员)必须让这变得如此混乱 - 在这个 b.s. 上浪费了足够的时间。已经!!
标签: git github installation appdata github-desktop