Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
和
git update-index --chmod=+x /path/to/file
我可以设置(或在使用时取消设置-x)执行位,但是如何设置索引中文件的完整权限(例如744)?
-x
744
这是不可能的。Git 只跟踪存储库中文件的执行位,所有其他权限都被忽略,因为没有一种在不同机器和操作系统之间转移权限的好方法。