fatal: detected dubious ownershipinrepository at'/data/git/DStudy.git' To add an exceptionforthis directory, call: git config --global --add safe.directory /data/git/DStudy.git 将该目录修改为执行命令的用户,如: chownhw:hw -R /data/git/DStudy.git...
It also seems to work in WSL2 without adding safe directory (YMMV). WSL1 I could only get to work with the above change. lunny pushed a commit to singuliere/gitea that referenced this issue Jun 17, 2022 gitconfig: set safe.directory = * … de41eb9 zeripath closed this as comple...
.linux": "zsh", "terminal.integrated.profiles.linux": { "zsh": { "path": "/bin/zsh" } }, "remote.SSH.showLoginTerminal": true }, "extensions": [ // some extensions ] }, "postCreateCommand": { "git-safe-dir-workspace": "git config --global --add safe.directory /workspace" ...
1.从Windows下载WSL和Ubuntu 1.类型sudo apt update 1.类型 sudo touch /etc/resolv.conf sudo chmod...
Ultimately this is a limitation in WSL so kindly also report this issue to the WSL team so that they can improve it. There's probably not much we can do on our side. It also sounds like this may not really be an issue, per the notes above about safe.directory. Related-to: #1194 ...
git config --global --add safe.directory %(prefix)/<path-to-repository> 0 Apr 16, 2022 3:10 AM AA Abraham Atala [MSFT] ··· @Ahmad Kelany are you working on WSL, or is the repository hosted on a UNC path or a file share? 0 Apr 16, 2022 3:13 AM AK ...
Git Config Command Fix The most obvious solution is to run the command that the Git error suggests, which uses git config to add the folder to [safe] folder list: powershell git config --global --add safe.directory <Git folder> This works fine, but it's a long command and you have...
git config --global user.name userName git config --global user.email userEmail 分支3 标签20 Lightningdon't bypass the web of trust (#378) (#379)3a137a411个月前 535 次提交 提交 .circleci Add missing library: libffi-dev 7年前
Add changeable config directory for root !3161 (Boris Korzun @boris.korzun) Docs: Correct link to Windows shared runner info !3160 Use sync.Mutex rather than RWMutex for simple protections !3159 Remove need for Git in runner images !3152 (Ben Bodenmiller @bbodenmiller) Suppress Git hints about...
git config --global --add safe.directory '%(prefix)///wsl$/Ubuntu/home/xxx/git-repos/test-repo' git のグローバルconfigに追加されました。 [safe] directory = %(prefix)///wsl$/Ubuntu/home/xxx/git-repos/test-repo この状態で、gitコミットコマンドを行うと、先ほどのエラーは表示されな...