Here I work with the terminal and when I want to believe the changes in git

git diff 

then he shows everything in the terminal

I understand that with the help of the command

 git config --global core.editor "kate" 

You can install an editor that will show the changes made

kate is the name of the editor

After I .gitconfig this command, I checked the .gitconfig file and it appeared there

 [user] name = aleksey email = aleksey@gmail.com [core] autocrlf = input excludesfile = /home/aleksey/.gitexcludes editor = kate 

In the last line.

But still, when I dial git diff in the terminal, everything opens in the terminal ...

Tell me how to fix it?

1 answer 1

No, not quite right

The git editor is the editor with which you are writing commit messages. That is, now if you run git commit ( --amend , if you only want to check), then kate will open for you to write a commit.

If you want to see the changes in some graphic editor, you can redirect the system tools stdout to a file and open it with any editor *. For example:

 git diff > out.txt && kate out.txt 

* Here, more competent people should correct me that it is more correct to look at diffs in difftool and corresponding tools that reflect the changes more clearly, but I am not too competent in this.

You can try running git difftool --tool-help , which will display all possible (and available) editors for viewing changes (you can install them). Here is an example of running the git difftool --tool=vimdiff

vimdiff screen

Of course, these editors can be installed globally or on a project (not to write constantly --tool )