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.
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.
Yeah, directly
sh test.sh
It needs to be added to the environment variables. Just click on this Baidu.
It’s too hard to use under win
Linux is better
Install Linux! The command line is so easy to use