打赏

相关文章

【git】fatal: This operation must be run in a work tree

之前是这么弄的 http://blog.csdn.net/commshare/article/details/20526369 ,感觉思路还是不太清晰。 今天新建立一个工程,需要一个仓库。 用git --bare init创建的empty的仓库,不能git add, 会会报错fatal: This operation mus…

Git Bash出现 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在初始化仓库后查看git状态是报错fatal: this operation must be run in a work tree: 问题描述 提示:这里描述项目中: 使用git init --bare 进行建立裸仓库之后,在使用git 其它的命令都会出现fa…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部