Linux上git clone的代码
git clone -b stable-1.1 https://git.cryptomilk.org/projects/cmocka.git
解决方法,执行如下命令:
git config --global --add safe.directory /common/workspace/distribute_storage/cmocka
vim /root/.gitconfig
显示如下:
[safe]
directory = /common/workspace/distribute_storage/cmocka
在windows上git log报错:
解决方法,执行如下命令:
git config --global --add safe.directory '%(prefix)///192.168.1.10/common/workspace/distribute_storage/cmocka'
vim /c/Users/Administrator/.gitconfig
内容如下:
[safe]
directory = %(prefix)///192.168.1.10/common/workspace/distribute_storage/cmocka