将文件恢复为更改前的原始文件。
Unmerged paths:
(use "git restore --staged <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: app/controllers/conversations_controller.rb
both modified: app/form_models/message/new_conversation_form.rb
当我这样做时
git restore app/controllers/conversations_controller.rb
error: path 'app/controllers/conversations_controller.rb' is unmerged
怎么了?我基本上需要忽略这些文件的更改,但没有我更改的其他文件。
两个步骤:
第一:
git reset app/controllers/conversations_controller.rb
第二:
git restore app/controllers/conversations_controller.rb