公告
财富商城
积分规则
提问
发文
2019-01-02 22:12发布
一纸荒年 Trace。
I have PyCharm and I am looking around trying to find git.exe to set it up with my repo.
What is the PATH to git.exe?
If you've got the PowerShell-based git installation, you can use the Get-Command object to find git:
Get-Command git.exe | Select-Object -ExpandProperty Definition
If you are using Git For Windows then it is located at
C:\Program Files\Git\mingw64\libexec\git-core
It is nice to have in mind that Git For Windows offers Git CMD, a command prompt with the PATH already set. Git CMD is available as a shortcut in
Start Menu > Programs > Git
among other options.
type in the command line:
where git.exe
For anyone who might not find the other solutions suitable,
I just today downloaded the newest version and the git.exe was located in
C:\Users\<user>\AppData\Local\GitHubDesktop\app-1.0.10\resources\app\git\cmd
If you've downloaded the latest version try looking in the CMD folder. git.exe should be in there and should work. You may have to input it's path manually with File>Settings>Version Control>Git
C:\Users\\AppData\Local\GitHub\PortableGit_\cmd\git.exe
This is the location that worked for me. I was unable to use git from the shell as well. Setting the above location as the path fixed that issue.
最多设置5个标签!
If you've got the PowerShell-based git installation, you can use the Get-Command object to find git:
If you are using Git For Windows then it is located at
It is nice to have in mind that Git For Windows offers Git CMD, a command prompt with the PATH already set. Git CMD is available as a shortcut in
among other options.
type in the command line:
For anyone who might not find the other solutions suitable,
I just today downloaded the newest version and the git.exe was located in
If you've downloaded the latest version try looking in the CMD folder. git.exe should be in there and should work. You may have to input it's path manually with File>Settings>Version Control>Git
C:\Users\\AppData\Local\GitHub\PortableGit_\cmd\git.exe
This is the location that worked for me. I was unable to use git from the shell as well. Setting the above location as the path fixed that issue.