Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-replace, w: add pages #4496

Merged
merged 16 commits into from
Oct 12, 2020
16 changes: 16 additions & 0 deletions pages/common/git-replace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# git replace

> Create, list, delete refs to replace objects.
unknown1924 marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://linux.die.net/man/1/git-replace>.
unknown1924 marked this conversation as resolved.
Show resolved Hide resolved

- Replace any commit with a different one, rest commits unchanged:
unknown1924 marked this conversation as resolved.
Show resolved Hide resolved

`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}}`