mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 02:12:17 +02:00
filter-repo (README): include refname-based filtering examples
Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
b04ba30e46
commit
c3d7fe8feb
16
README.md
16
README.md
@ -538,6 +538,22 @@ See also the `--blob-callback` from the [callbacks section](#callbacks).
|
||||
|
||||
### Refname based filtering
|
||||
|
||||
To rename tags, use `--tag-rename`, e.g.:
|
||||
|
||||
```shell
|
||||
git filter-repo --tag-rename foo:bar
|
||||
```
|
||||
|
||||
This will rename any tags starting with `foo` to now start with `bar`.
|
||||
Either side of the colon could be blank, e.g.
|
||||
|
||||
```shell
|
||||
git filter-repo --tag-rename '':'my-module-'
|
||||
```
|
||||
|
||||
For more general refname modification, see `--refname-callback` from
|
||||
the [callbacks section](#callbacks).
|
||||
|
||||
### User and email based filtering
|
||||
|
||||
### Callbacks
|
||||
|
Loading…
Reference in New Issue
Block a user