您的位置:首页 > 运维架构

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

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

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

git commit等命令了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐