[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和其他命令。

版权声明:本文博客原创文章,博客,未经同意,不得转载。

posted @ 2015-07-28 12:16  phlsheji  阅读(3154)  评论(0编辑  收藏  举报