paralin / git-find-replace

Tool to find and replace literal strings within a Git repo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-find-replace

This is a small tool which can be used to find and replace literal strings in a Git repository.

It uses git grep -l -F to search for the pattern and strings.ReplaceAll from Go to replace the matches within the files.

Usage:

go install -v github.com/paralin/git-find-replace@main
cd ./my/git/repo
git find-replace 'SearchString' 'ReplaceString'

Searches and replaces in files in and below the working dir.

Ignores files ignored by .gitignore.

License

MIT

About

Tool to find and replace literal strings within a Git repo.

License:MIT License


Languages

Language:Go 100.0%