git报错总结(持续更新,有空才更新上来)

547 阅读1分钟

1报错

fatal: detected dubious ownership in repository at 'C:/xxx/xxx/xxx/公司项目/小程序项目/xxxxxx'
To add an exception for this directory, call:

        git config --global --add safe.directory 'C:/xxx/xxx/xxx/公司项目/小程序项目/xxxxxx'

Set the environment variable GIT_TEST_DEBUG_UNSAFE_DIRECTORIES=true and run
again for more information.

解决方法

按照上面要求输入

git config --global --add safe.directory 'C:/xxx/xxx/xxx/公司项目/小程序项目/xxxxxx'