PHP中文网2017-05-02 09:26:53
It can be used, git is not compatible with win. The reason why git can run under win is because Cygwin is encapsulated. Go to Baidu and you will know what this is. Cygwin itself provides most unix commands, so you can use many commands when you open git.
But the one in git may not be easy to use. Cygwin itself can install many packages, and many unavailable commands can be added through packages. It seems that the git package does not have this function.
The best way is to install a virtual machine and then log in with xshell. Cygwin is just a tool that can be used to communicate with Linux commands, which is not pleasant if you develop frequently.
阿神2017-05-02 09:26:53
It needs to be added to the environment variables. Just click on this Baidu.