简体   繁体   中英

How do i get a colored diff for last changes in git on the console?

I would like to be able to see the last changes in a git repository from within a console.

Is it possible to get a GUI-like output in colour, side-by-side and only the last 10 commits?

maybe this somehow works on debian too: http://heipei.net/2009/01/29/git-full-length-side-by-side-diffs/

在此处输入图像描述

'git difftool' allows you to do this.

You can also use your favorite difftool by doing 'git difftool --tool=vimdiff --no-prompt'

And you can compare revisions like other diff comands

'git difftool HEAD~10 HEAD'

我衷心推荐tig用于基于文本的 git UI。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM