小编bam*_*wth的帖子

将"core.bare"设置为false后,"git reset --hard"错误无法统计刚刚写入的文件

当我尝试以下bash命令时:

git clone --bare https://github.com/planetoftheweb/learnangular.git .git
git config --bool core.bare false
Run Code Online (Sandbox Code Playgroud)

其次是:

git reset --hard 
Run Code Online (Sandbox Code Playgroud)

它给了我这个错误:

error: `unable to stat just-written` file app/component.app.ts: No such file or directory
error: unable to stat just-written file app/component.artist-details.ts: No such file or directory
error: unable to stat just-written file app/component.artist-item.ts: No such file or directory
error: unable to stat just-written file app/pipe.search.ts: No such file or directory
error: unable to stat just-written file app/app.modules.ts: No such file or directory
Run Code Online (Sandbox Code Playgroud)

是什么原因?

git

4
推荐指数
2
解决办法
3036
查看次数

标签 统计

git ×1