OSTREE-RESET(1)
π NAME π
okay bestie, welcome to the OSTREE RESET(1) page. the NAME here is ostree-reset, and the command you actually type is ostree reset β it resets a ref to a previous commit. itβs giving βundo button but make it refsβ energy. π
β¨ SYNOPSIS β¨
ostree reset {REF} {REF_TO_RESET_TO}
π DESCRIPTION π
Given a commit, this command will reset the ref to a previous specified commit. yep, thatβs the whole plot β no cap, no secret extra steps on this page. π«Ά
πΈ EXAMPLE πΈ
okay, example time. bestie, watch this little time-travel situation:
$ ostree log my-branch
commit 67e382b11d213a402a5313e61cbc69dfd5ab93cb07
Date: 2014-06-12 13:42:54 +0000
This is the second commit
commit ce19c41036cc45e49b0cecf6b157523c2105c4de1c
Date: 2014-06-12 11:20:08 +0000
Initial commit
$ ostree reset my-branch my-branch^
$ ostree log my-branch
commit ce19c41036cc45e49b0cecf6b157523c2105c4de1c
Date: 2014-06-12 11:20:08 +0000
Initial commit
and thatβs the reset, bestie β iconic. π
that was OSTREE RESET(1) from OSTree β source/version: OSTree, manual page: OSTREE RESET(1), and this page doesnβt list a date, so no date to stamp here. bye bestie! π
π¦ where this page comes from
- arch rolling: ostree 2026.6-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms