search

Home  >  Q&A  >  body text

Can I run shell scripts after installing git on windows?

过去多啦不再A梦过去多啦不再A梦2794 days ago670

reply all(5)I'll reply

  • PHP中文网

    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.

    reply
    0
  • PHPz

    PHPz2017-05-02 09:26:53

    Yeah, directlysh test.sh

    reply
    0
  • 阿神

    阿神2017-05-02 09:26:53

    It needs to be added to the environment variables. Just click on this Baidu.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:26:53

    It’s too hard to use under win

    Linux is better

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:26:53

    Install Linux! The command line is so easy to use

    reply
    0
  • Cancelreply