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 ────────────────────────────────────────────────── 6d33d51f1322 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 4639f245c06c 2020-10-09 09:06:03 [MOVE] MoveCommit 797a7aa25639 2020-10-09 09:06:03 [MOVE] MoveCommit 63f896995917 2020-10-09 09:06:03 [RESTORE] Restored from snapshot c3017b4534b8 2020-10-09 09:06:03 [UNDO] UndoCommit 6091aea641e5 2020-10-09 09:06:03 [UNDO] UndoCommit d5e5d64a50df 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 700afaa09cdd 2020-10-09 09:06:03 [SQUASH] SquashCommit 946b318cabfb 2020-10-09 09:06:03 [SQUASH] SquashCommit eee2caf328f5 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 3b2fdb544f65 2020-10-09 09:06:03 [AMEND] AmendCommit 6e9278b8e2fb 2020-10-09 09:06:03 [AMEND] AmendCommit f6c76a18b727 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 9a8b35349c5a 2020-10-09 09:06:03 [MOVE_HUNK] MoveHunk 19ca34d9b936 2020-10-09 09:06:03 [UPDATE_BASE] UpdateWorkspaceBase 966619a67557 2020-10-09 09:06:03 [RESTORE] Restored from snapshot 8a2fb00455b3 2020-10-09 09:06:03 [RESTORE] Restored from snapshot bfd3f20da37d 2020-10-09 09:06:03 [MOVE_HUNK] MoveHunk 2baf0bac3a23 2020-10-09 09:06:03 [MOVE_HUNK] MoveHunk b0d2668965b0 2020-10-09 09:06:03 [MOVE_HUNK] MoveHunk
Undoing the last operation
Undo the last operation:
$ but undo
Undoing operation... Reverting to: MoveCommit (2020-10-09 09:06:03) ✓ Undo completed successfully! Restored to snapshot: 4639f245c06c
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