Walker Hildebrand
06/05/2025, 8:01 PMgt undo
gt --version 1.6.1
git version 2.49.0
I had untracked file additions and file modifications that I committed with gt c -am "branch_name" . I then ran gt undo which restored the file modifications. However it deleted all of the 'untracked' files which I had added.
This is an extremely frustrating bug as it has led to a days worth of work lost. Is there any method in which I can restore these files?Pylon
06/05/2025, 8:01 PMgt feedback --with-debug-context <any message>Pylon
06/05/2025, 8:18 PMgt undo undoes the most recent Graphite mutation, restoring the repository to its state before the mutation was applied. The gt create -am command is a single Graphite mutation, even though under the hood that command performs multiple git operations.
Since your untracked files only came into existence in the git history as part of that single mutation (when they were staged and committed), undoing the mutation removed them entirely.Walker Hildebrand
06/05/2025, 8:21 PMundo operations since it's critically buggedElder Yoshida
06/05/2025, 11:04 PMgit reflog ?Walker Hildebrand
06/06/2025, 1:40 AMElder Yoshida
06/06/2025, 7:35 AMVlad Ivanov
06/06/2025, 8:08 AM