小编Pet*_*ons的帖子

git 存档,包括未提交的修改文件

所以git archive --format=tar HEAD会给我一个当前分支上最新提交的 tar 存档。是否有包含对尚未提交的跟踪文件进行本地修改的版本?

git

8
推荐指数
1
解决办法
4253
查看次数

无法触摸 -ma 可写文件

有人可以解释为什么我在运行touch -m此文件时权限被拒绝,即使它是组可写的并且我可以很好地写入文件。

~/test1-> id
uid=1000(plyons) gid=1000(plyons) groups=1000(plyons),4(adm),20(dialout),24(cdrom),46(plugdev),109(lpadmin),110(sambashare),111(admin),1002(webadmin)
~/test1-> ls -ld .; ls -l
drwxrwxr-x 2 plyons plyons 4096 Feb 14 21:20 .
total 4
-r--rw---- 1 www-data webadmin 24 Feb 14 21:29 foo
~/test1-> echo the file is writable >> foo
~/test1-> touch -m foo
touch: setting times of `foo': Operation not permitted
~/test1-> lsattr foo 
-------------e- foo
~/test1-> newgrp - webadmin 
~/test1-> id
uid=1000(plyons) gid=1002(webadmin) groups=1000(plyons),4(adm),20(dialout),24(cdrom),46(plugdev),109(lpadmin),110(sambashare),111(admin),1002(webadmin)
~/test1-> touch -m foo
touch: setting times of `foo': Operation not …
Run Code Online (Sandbox Code Playgroud)

filesystems permissions

5
推荐指数
1
解决办法
8081
查看次数

标签 统计

filesystems ×1

git ×1

permissions ×1