mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 17:43:55 +00:00
Update cheatsheets
This commit is contained in:
21
git-replace
Normal file
21
git-replace
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user