mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:42:07 +02:00
16 lines
414 B
Markdown
16 lines
414 B
Markdown
# git replace
|
|
|
|
> Create, list, and delete refs to replace objects.
|
|
> More information: <https://git-scm.com/docs/git-replace>.
|
|
|
|
- Replace any commit with a different one, leaving other commits unchanged:
|
|
|
|
`git replace {{object}} {{replacement}}`
|
|
|
|
- Delete existing replace refs for the given objects:
|
|
|
|
`git replace --delete {{object}}`
|
|
|
|
- Edit an object’s content interactively:
|
|
|
|
`git replace --edit {{object}}`
|