On Gitlab, how to compare a file of two different commits

后端 未结 7 813
面向向阳花
面向向阳花 2021-02-05 02:38

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
         


        
7条回答
  •  长情又很酷
    2021-02-05 03:05

    if you want to compare one file different version

    1.Repositoy->Commits->select file->click Side-by-side

    2.you will see two windows,left is old version and right is new version.

提交回复
热议问题