On Gitlab, how to compare a file of two different commits
问题 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 回答1: 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' 回答2: it