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

查看:15
本文介绍了在 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.

  1. 转到存储库 > 比较
  2. 粘贴此网址:https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2
  3. 回车(注意:gitlab 会正确设置 'Source' 和 'Target')
  4. 点击比较"按钮
  1. go to Repository > Compare
  2. paste this url: https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2
  3. hit enter (notice: gitlab will set 'Source' and 'Target' properly)
  4. click button 'compare'

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

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