Updated Edit
On this page
reverse the last safegit-authored operation using the oplog -- a commit, an mv, an amend, a reword, a merge, pull, cherry-pick or revert safegit's own commit pipeline authored, or a conclusion (merge-continue, cherry-pick-continue, revert-continue).
#safegit undo
reverse the last safegit-authored operation using the oplog -- a commit, an mv, an amend, a reword, a merge, pull, cherry-pick or revert safegit's own commit pipeline authored, or a conclusion (merge-continue, cherry-pick-continue, revert-continue). A fast-forward is REFUSED rather than reversed: the tip it moved onto is a commit git created and safegit never rolls a branch back over one. It moves a REF and never the working tree
Effect: mutating
#Flags
| Name | Short | Type | Presence | Env | Description |
|---|---|---|---|---|---|
--bypass-session, --no-bypass-session | bool | optional | undo across all sessions by ignoring the session ID ownership check; omitted means only this session's operations are undone | ||
--count | int | optional | number of oplog operations to undo in a single invocation; omitted means one |
#Grants
| Kind | Name | Reason |
|---|---|---|
| proc_mutate | parent-bump | undoing a submodule commit moves the parent's gitlink back, so safegit commits the parent too when commit.autoBumpParent is on |