Add entries to .gitignore
Apache 2.0Adds entries to the project's .gitignore file. If no .gitignore file exists, one will be created. Existing entries that match will not be duplicated.
org. openrewrite. AddToGitignoreRequired
Multiline text containing gitignore entries to add, each on a separate line. Comments and blank lines are preserved.
Optional
A glob pattern to match .gitignore files to update. Defaults to only the root .gitignore file. Use **/.gitignore to update all .gitignore files in the repository, or specify a specific path like src/.gitignore.
mod run . --recipe= org. openrewrite. AddToGitignore \
-P entries= '*. tmp
. DS_Store
target/ 'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.