在 GitLab 上,如何比较两个不同提交的文件 [英] On GitLab, how to compare a file of two different commits
本文介绍了在 GitLab 上,如何比较两个不同提交的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 GitLab 上,如何比较两个不同提交的文件?我知道在命令行 git 上,命令是:
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
在 GitLab 上执行此操作的链接格式是什么?
What is the link format to do this on GitLab?
查看我的相关问题
推荐答案
它将比较提交,您将能够在列表中找到文件.
It will compare commits, you will be able to find file in list.
- 转到存储库 > 比较
- 粘贴此网址:https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2
- 回车(注意:gitlab 会正确设置 'Source' 和 'Target')
- 点击比较"按钮
- go to Repository > Compare
- paste this url: https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2
- hit enter (notice: gitlab will set 'Source' and 'Target' properly)
- click button 'compare'
这篇关于在 GitLab 上,如何比较两个不同提交的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文