How to chmod 0777 a file and commit as is to Git on Windows?

前端 未结 2 1040
天涯浪人
天涯浪人 2021-02-05 07:07

I\'m working on Windows and on the production there\'s a Linux system and I\'d like to chmod some files to 0777, but I don\'t know how to do it on Windows. I rather not do it on

2条回答
  •  我寻月下人不归
    2021-02-05 07:20

    An alternative solution is to install Cygwin on Windows.

    Cygwin emulates a Unix-like environment but all cygwin programs run natively on your Windows machine. It is not a virtual machine. However, cygwin binaries are compiled with the cygwin libraries which allows them to understand stuff like unix style file permissions that normal Windows programs don't understand.

    So you need to install a version of git for Cygwin. Just select git from the Cygwin installer when first installing Cygwin.

提交回复
热议问题