https://github.com/paralin/git-find-replace
Tool to find and replace literal strings within a Git repo.
https://github.com/paralin/git-find-replace
Last synced: 2 months ago
JSON representation
Tool to find and replace literal strings within a Git repo.
- Host: GitHub
- URL: https://github.com/paralin/git-find-replace
- Owner: paralin
- License: mit
- Created: 2023-05-26T00:55:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-26T00:55:27.000Z (almost 3 years ago)
- Last Synced: 2025-03-10T22:48:35.326Z (12 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-find-replace
[Go Report Card Widget]: https://goreportcard.com/badge/github.com/paralin/git-find-replace
[Go Report Card]: https://goreportcard.com/report/github.com/paralin/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