mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 05:45:33 +08:00
8e09a08059
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
17 lines
423 B
Markdown
17 lines
423 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 {{[-d|--delete]}} {{object}}`
|
||
|
||
- Edit an object’s content interactively:
|
||
|
||
`git replace --edit {{object}}`
|