我想從我的工作目錄刪除該文件,但使用以下命令無法檢出,文件是未合併
git checkout file_Name.txt
後,我得到了以下錯誤消息
error: path 'first_Name.txt' is unmerged
是什麼和如何解決它?
以下是我的git狀態
$ git status
On branch master
You are currently reverting commit f200bf5.
(fix conflicts and run "git revert --continue")
(use "git revert --abort" to cancel the revert operation)
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: first_file.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
explore_california/
no changes added to commit (use "git add" and/or "git commit -a")
'git的RM file1.txt' – brokenfoot
感動到臨時索引,但如果你想刪除'explore_california'然後就做了'RM我是無法清除的文件夾explore_california/ –
- r explore_california',因爲它沒有被git跟蹤。 – brokenfoot