[git] fatal: This operation must be run in a work tree
时间:2015-03-12 19:15:38
收藏:0
阅读:12941
在使用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
评论(0)