Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在不切换到该分支的情况下获取其他分支中某些特定文件的版本。在编码时,vim我可以输入类似:!git show some_other_branch:file_name. 那么 IDEA 呢,执行相同任务的最佳方式是什么?
vim
:!git show some_other_branch:file_name
您可以右键单击文件中的某处,选择Git->Compare with Branch...然后选择您想要的分支。
Git->Compare with Branch...