[git] fatal: This operation must be run in a work tree

        在使用git  init --bare 进行建立裸仓库之后,在使用git 其它的命令都会出现fatal:This operation must be run in a work tree 问题,处理方法:

        先touch readme 因为在创建裸仓库时,没有生成readme 文件,出现不能提交的情况。之后就可以使用git init,git add readme

 git commit等命令了。

文章来自:http://blog.csdn.net/huanghaiyan_123/article/details/44225157
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3