git checkout file

例如:git checkout app/views/carts/_index_m.html.erb

可以先用 git status 查看差异

然后 git checkout file【显示的存在差异的文件名】

相关文章:

  • 2022-03-05
  • 2022-02-08
  • 2021-07-06
  • 2021-04-28
  • 2021-11-15
  • 2021-04-22
猜你喜欢
  • 2021-08-21
  • 2022-02-11
  • 2021-07-22
  • 2021-05-30
相关资源
相似解决方案