Programmatically (not manually) finding the path where Git is installed on a Windows system

前端 未结 6 744
太阳男子
太阳男子 2020-12-13 06:12

I\'d like to write a small build helper tool that shall read some properties of the current Git working directory, like the last commit hash, whether there\'s modified files

6条回答
  •  再見小時候
    2020-12-13 06:43

    git --man-path gets you to [base git installation dir]\mingw64\share\man. git.exe is at [base git installation dir]\cmd.

提交回复
热议问题