unison/unison-src/transcripts/reset.md

735 B

.> builtins.merge

reset loose code

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

reset branch

.> project.create-empty foo
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