Git Show to another editor

I want the show git command to send the contents of the file to another editor (e.g. Notepad ++) instead of the default view.

I assume this is possible by modifying the git configuration, but I'm not sure where.

+6
source share
1 answer

Git does not call the editor, when you git show something, it calls your pager, and two serve completely different purposes.

After configuring core.pager you can configure it with git config --global core.pager <your editor here> , but this will not help if your editor cannot be configured to read from stdin.

+11
source

Source: https://habr.com/ru/post/902945/


All Articles