同项目不同分支对比(常用)
一、选择对比

同项目同分支不同次提交对比(常用)
方式一、查看commit,对比提交1:右键 -> Select for Compare
对比文提交2:右键 -> Compare with Selected
方式二:

二、查看commit,分支对应id,输入即可。
不同提交相同文件对比
方式一:打开对应文件,查看对应记录,将两次记录选择对比即可。

方式二:复制文件的某次记录的代码的内容粘贴到该文件进行覆盖,注意别忘了先把文件内容进行提交。
当前分支不同文件对比
方式一:
对比文件1:右键 -> Select for Compare
对比文件2:右键 -> Compare with Selected


方式二:
复制对比文件2的内容粘贴到对比文件1 进行覆盖,注意别忘了把对比文件1内容进行提交。
网友评论