unison/unison-src/transcripts/reset.md
2024-06-25 11:11:07 -07:00

817 B

scratch/main> builtins.merge

reset loose code

a = 5
scratch/main> add
scratch/main> history
scratch/main> reset 2
scratch/main> history
foo.a = 5
scratch/main> add
scratch/main> ls foo
scratch/main> history
scratch/main> reset 1 foo
scratch/main> ls foo.foo

reset branch

foo/main> history
a = 5
foo/main> add
foo/main> branch topic
foo/main> history
a = 3
foo/main> update
foo/main> reset /topic
foo/main> history

ambiguous reset

ambiguous target

main.a = 3
foo/main> add
foo/main> history
foo/main> reset 2 main

ambiguous hash

main.a = 3
foo/main> switch /topic
foo/topic> add
foo/topic> reset main