Git Show to different editor

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.

  • Can SourceTree show diff side-by-side
  • Git never (auto) merge composer.json
  • Undo settings changes for git config --global branch.autosetuprebase always
  • pitfalls svn -> git migration
  • Why does 'SCM Status' break when file system is irregular?
  • Making git auto-commit
  • Can't connect to git repo on El Capitan with SourceTree
  • Prevent merging a file from master with Git
  • Local Jenkins can't authenticate remote Gitlab private repository
  • Why does deleting a conflicted file break a project?
  • git rebase master feature gives (rename/delete) conflict, git rebase -i master feature does not
  • Have .gitignore to NOT ignore an .htaccess file within top level directory
  • One Solution collect form web for “Git Show to different editor”

    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.

    Git Baby is a git and github fan, let's start git clone.