首页 > 解决方案 > Git checkout branchname 创建不在 git log 中的文件

问题描述

 ✗ git rm -f styleguide/public/patterns/05-templates-Right-Sidebar/index.html 
rm 'styleguide/public/patterns/05-templates-Right-Sidebar/index.html'
 ✗ git checkout WEB-6862-update
Updating files: 100% (3876/3876), done.
Switched to branch 'WEB-6862-update'
Your branch is up to date with 'origin/WEB-6862-update'.
 ✗ ls styleguide/public/patterns/05-templates-Right-Sidebar/index.html
styleguide/public/patterns/05-templates-Right-Sidebar/index.html
 ✗ git log styleguide/public/patterns/05-templates-Right-Sidebar/index.html
 ✗ 

这怎么会发生,我该如何解决?git hooks 中没有任何内容。

标签: gitwindows-subsystem-for-linux

解决方案


推荐阅读