logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Replace Text with git-sed - Edit Files | Online Free DevTools by Hexmos

Replace text effortlessly with git-sed. Edit files within your Git repository directly from the command line. Free online tool, no registration required.

git-sed

Replace patterns in git-controlled files using sed. Part of git-extras. More information: https://manned.org/git-sed.

  • Replace the specified text in the current repository:

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

  • Replace the specified text and then commit the resulting changes with a standard commit message:

git sed -c '{{find_text}}' '{{replace_text}}'

  • Replace the specified text, using regex:

git sed -f g '{{find_text}}' '{{replace_text}}'

  • Replace a specific text in all files under a given directory:

git sed '{{find_text}}' '{{replace_text}}' -- {{path/to/directory}}

See Also