"We all use linux commands in git even in windows. I wanted to know how does it let these linux commands run on windows?"
Simply add <c:\path\to\git\bin> to your %PATH% and you can use the Unix command packaged with msysgit.
For instance, ls or grep would work.
C:\prgs>which ls
C:\prgs\git\PortableGit-1.9.5-preview20141217\bin\ls.EXE
Those commands are part of the MinGw/msys project which provides a minimalist development environment for native Microsoft Windows applications.
That is what is used to build git itself, and its collection of Linux commands (as Windows executable).
See more at:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With