安装GitHub for Windows
后,我可以直接在Powershell
中使用git
命令:
C:UsersxiaonaDocumentsGitHub> 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 Files
或C:Program Files (x86)
中找不到它.
在我的电脑里在这里:
C:\Users\Administrator\AppData\Local\GitHub
检查后,它应该在:
%LocalAppData%GitHub
例如,在我的PC中,它是:
C:UsersxiaonaAppDataLocalGitHubPortableGit_c2ba306e536fdf878271f7fe636a147ff37326adbin