git - 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 中没有任何内容。
解决方案
推荐阅读
- javascript - NestJS:护照身份验证未定义
- excel - 如何在 Excel 的 VBA 编辑器中禁用自动格式化?
- c# - 有效平均(移动平均)
- visual-studio-code - VS Code 设置 editor.autoClosingBrackets languageDefined - 这些语言设置在哪里定义?
- java - Spring Data JPA 映射一对一关系返回空值
- angular - Angular 跨域动态组件加载器
- html - 如何在引导程序中的两个独立列中水平对齐标题?
- python - 我想在多折线图中使用 col 参数在所有 sns 图中获取 x 刻度标签
- javascript - GoJS 中的动画图标
- docker - Docker - 在启动容器之前需要延迟