【发布时间】:2021-12-02 21:05:39
【问题描述】:
运行git rebase -i 时出现错误:
$ git rebase -i 01a182d66b14ef8f32eb09614fe2c7144044a537^
error: The following untracked working tree files would be overwritten by checkout:
Annotation/README.MD
Please move or remove them before you switch branches.
Aborting
error: could not detach HEAD
我看不出问题出在哪里,因为当我运行 git status 时,它告诉我没有未分级的更改:
git status
On branch dataset
nothing to commit, working tree clean
运行git stash 也无济于事:
$ git stash
No local changes to save
【问题讨论】:
标签: git rebase git-rebase