mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-22 17:28:15 +03:00
git-filter-repo: add page (#7493)
This commit is contained in:
parent
59bff1c102
commit
d7375910c7
21
pages/common/git-filter-repo.md
Normal file
21
pages/common/git-filter-repo.md
Normal file
@ -0,0 +1,21 @@
|
||||
# git filter-repo
|
||||
|
||||
> A versatile tool for rewriting Git history.
|
||||
> See also: `bfg`.
|
||||
> More information: <https://github.com/newren/git-filter-repo>.
|
||||
|
||||
- Replace a sensitive string in all files:
|
||||
|
||||
`git filter-repo --replace-text <(echo '{{find}}==>{{replacement}}')`
|
||||
|
||||
- Extract a single folder, keeping history:
|
||||
|
||||
`git-filter-repo --path {{path/to/folder}}`
|
||||
|
||||
- Remove a single folder, keeping history:
|
||||
|
||||
`git-filter-repo --path {{path/to/folder}} --invert-paths`
|
||||
|
||||
- Move everything from sub-folder one level up:
|
||||
|
||||
`git-filter-repo --path-rename {{path/to/folder/:}}`
|
Loading…
Reference in New Issue
Block a user