"We all use linux commands in git even in windows. I wanted to know how does it let these linux commands run on windows?"
最佳答案
只需添加 <c:\path\to\git\bin>
给你的%PATH%
你可以使用 Unix 命令 packaged with msysgit .
例如,ls
或 grep
会工作。
C:\prgs>which ls
C:\prgs\git\PortableGit-1.9.5-preview20141217\bin\ls.EXE
这些命令是 MinGw/msys project 的一部分为 native Microsoft Windows 应用程序提供极简开发环境。
这就是用于构建 git 本身及其 Linux 命令集合(作为 Windows 可执行文件)的内容。
查看更多:
关于git - 我们如何通过git在windows上使用linux命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29296899/