安装“GitHub for Windows”后git命令在哪里?

时间:2015-06-17 03:26:55

标签: windows git powershell github github-for-windows

安装GitHub for Windows后,我可以直接在git中使用Powershell命令:

C:\Users\xiaona\Documents\GitHub> git
usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

The most commonly used git commands are:
   add        Add file contents to the index
   bisect     Find by binary search the change that introduced a bug
......

但是安装了git命令在哪里?我在C:\Program FilesC:\Program Files (x86)中找不到它。

2 个答案:

答案 0 :(得分:2)

我的电脑在这里:

C:\用户\管理员\应用程序数据\本地\ GitHub的

答案 1 :(得分:0)

检查后,它应该在:

%LocalAppData%\GitHub

例如,在我的电脑中,它是:

C:\Users\xiaona\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin