I want the git show command to send the contents of the file to a different editor (e.g. Notepad++) instead of the default view.
I'm presuming this is possible by changing the git config but I'm not sure where.
Git is not invoking an editor when you git show
something, it is invoking your pager, and the two serve completely different purposes.
The setting you're after is core.pager
, and you can configure it with git config --global core.pager <your editor here>
, but it won't help if your editor can't be configured to read from stdin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With