paladin1@locutus:~> ls -ld .password-store/
drwxrwxrwx 3 paladin1 users 4096 Dec 8 00:14 .password-store/
paladin1@locutus:~> cd .password-store/
paladin1@locutus:~/.password-store> env | grep GIT
paladin1@locutus:~/.password-store> git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /home/paladin1/.git/
paladin1@locutus:~/.password-store> pass git init
fatal: cannot change to '/home/paladin1/.password-store': Permission denied(我通常对这个目录没有777个权限;这是用于故障排除的。)
为什么git要在父目录中创建它的存储库,而不是我告诉它的位置?
发布于 2021-12-08 05:51:01
当@torek在上面的评论中提出一个问题时,
git在消防监狱中运行,没有目录访问权限。
https://stackoverflow.com/questions/70270441
复制相似问题