在Gitlab上,如何比较两个不同提交的文件 [英] On Gitlab, how to compare a file of two different commits
问题描述
在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屋!