git 2.35.2後,在.gitconfig設定加入 [safe] directory = * 參考:https://blog.darkthread.net/blog/git-unsafe-repo-n-gitea/