Tow*_*wer 21 linux windows filesystems git
我正在开发Windows,并且在生产中有一个Linux系统,我想将一些文件chmod到0777,但我不知道如何在Windows上进行操作.我宁愿不在生产上这样做,因为我无法提交/推动那里.
有没有办法在Windows上chmod 0777一个文件并将其提交给Git,以便在我克隆/拉动生产时它保持0777?
cra*_*150 40
如果要将文件标记为可执行文件,则可以使用
git update-index --chmod=+x <your_file>
Run Code Online (Sandbox Code Playgroud)
如果你真的想让每个人都可以写文件,你必须post-update在linux系统上设置一个钩子,因为git不跟踪文件权限,只跟踪可执行位.