码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-03-12 19:16:45      阅读:1474      评论:0      收藏:0      [点我收藏+]

标签:git

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

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

 git commit等命令了。

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

标签:git

原文地址:http://blog.csdn.net/huanghaiyan_123/article/details/44225157

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!