[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等命令了。

,每一幢房子都有一种不同的颜色,

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

相关文章:

你感兴趣的文章:

标签云: