GuidesCLI Tutorial
Operations Log
Understanding and using GitButler's operations log to track and undo changes.
GitButler maintains a detailed log of all operations, making it easy to track what happened and undo changes when needed.
Viewing the Operations Log
See all recent GitButler operations:
$ but oplog
Operations History ────────────────────────────────────────────────── b2a8ac4944b1 2020-10-09 09:06:03 [INSERT] InsertBlankCommit 1defea872de8 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 4e95ee342738 2020-10-09 09:06:03 [OTHER] FileChanges c1dd1d700e34 2020-10-09 09:06:03 [MOVE] MoveCommit ab00dc27c499 2020-10-09 09:06:03 [MOVE] MoveCommit 0101a714c753 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 27dd819204e4 2020-10-09 09:06:03 [UNDO] UndoCommit 43b8a28a0ccf 2020-10-09 09:06:03 [UNDO] UndoCommit babcefccdf65 2020-10-09 09:06:03 [RESTORE] Restored from snapshot ab3e9e31b19f 2020-10-09 09:06:03 [SQUASH] SquashCommit 00bd60aacb82 2020-10-09 09:06:03 [SQUASH] SquashCommit d0ca73311eac 2020-10-09 09:06:03 [RESTORE] Restored from snapshot b1f761cd064c 2020-10-09 09:06:03 [AMEND] AmendCommit 96d01b67d764 2020-10-09 09:06:03 [AMEND] AmendCommit 49a68677fa4e 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 5d8526c74fc6 2020-10-09 09:06:03 [MOVE_HUNK] MoveHunk 6e3628b846fb 2020-10-09 09:06:03 [UPDATE_BASE] UpdateWorkspaceBase e0e8fa2026db 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 7eba438c230a 2020-10-09 09:06:03 [RESTORE] Restored from snapshot cee497653695 2020-10-09 09:06:03 [MOVE_HUNK] MoveHunk
Undoing the last operation
Undo the last operation:
$ but undo
Undoing operation... Reverting to: Restored from snapshot (2020-10-09 09:06:03) ✓ Undo completed successfully! Restored to snapshot: 1defea872de8
Restoring to a previous point
$ but restore -f 6fdd8fb1d547
Restoring to oplog snapshot... Target: MoveHunk (2025-10-08 11:37:29) Snapshot: 6fdd8fb ✓ Restore completed successfully! Workspace has been restored to the selected snapshot.
Last updated on