Windows GIT-执行GIT init时出错
在Windows虚拟机的GitBash中执行Windows GIT-执行GIT init时出错,windows,git,Windows,Git,在Windows虚拟机的GitBash中执行git init时,一名开发人员出现以下错误: 一审 error: could not write config file //xxx/yyy/.git/config: Function not implemented Fatal: could not set 'core.symlinks' to false error: could not write config file //xxx/yyy/.git/config: Function not
git init
时,一名开发人员出现以下错误:
error: could not write config file //xxx/yyy/.git/config: Function not implemented
Fatal: could not set 'core.symlinks' to false
error: could not write config file //xxx/yyy/.git/config: Function not implemented
Fatal: could not set 'core.repositoryformatversion' to '0'
error: could not write config file //xxx/yyy/.git/config: Function not implemented
Fatal: could not set 'core.symlinks' to false
error: could not write config file //xxx/yyy/.git/config: Function not implemented
Fatal: could not set 'core.repositoryformatversion' to '0'
git init
,git add
,git commit
,git push
如果您有相同的问题并发现了解决方案,请提供帮助 这通常是由权限错误引起的。
因此,一个开发人员能够使用git,而另一个开发人员不能使用git是有道理的。检查您的文件夹(git repository folder)权限,并验证给定用户是否能够将内容写入此文件夹。(检查给定文件夹及其父文件夹的权限) 另一个选项(可能是但不太可能是)是防病毒软件阻止您更改文件夹(添加到@CodeWizard的答案中) 在文件夹中创建repo时:git在目录的底部创建一个
.git/
文件夹,然后处理该文件夹中的文件
- 检查是否确实创建了此文件夹(例如,在shell中键入
)dir//xxx/yyy/.git
- 检查此
文件夹上的访问权限(“属性窗口的安全”选项卡).git/