在Gitlab上,如何比较两个不同提交的文件 [英] On Gitlab, how to compare a file of two different commits

查看:3843
本文介绍了在Gitlab上,如何比较两个不同提交的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Gitlab上,如何比较两个不同提交的文件?我知道,在命令行git上,命令是:

git diff commit1 commit12 - file_name



什么是在gitlab上做这件事的链接格式?

查看我的相关信息 question

解决方案

它会比较提交,您将能够找到文件在列表中。


1)进入Repository> Compare
b $ b 2)粘贴: https://gitlab.com/ $ USER / $ REPO / compare?from = $ SHA1& to = $ SHA2 url
3)回车(注意:gitlab会设置'Source'和'Target')
4)点击按钮'比较'


On Gitlab, how to compare a file of two different commits? I know that that on command line git, the command is:

git diff commit1 commit12 -- file_name

what is the link format to do this on gitlab?

see my related question

解决方案

It will compare commits, You will be able to find file in list.

1) go to Repository > Compare
2) paste: https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2 url
3) hit enter (notice: gitlab will set 'Source' and 'Target' properly)
4) click button 'compare'

这篇关于在Gitlab上,如何比较两个不同提交的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆