Replace the specified text in the current repository

git sed

  • Replace patterns in git-controlled files using sed.
    Part of `git-extras`.
    More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-sed>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git sed '{{find_text}}' '{{replace_text}}'

click the source code to copy install git sed on any operating system with command-not-found.com