lore unlink
Remove associations between a session and the commits it was linked to. You can unlink a session from all of its commits or from one specific commit. The session itself is not deleted.
lore unlink <SESSION> [OPTIONS]Examples
Section titled “Examples”# Unlink a session from all commits (prompts for confirmation)lore unlink abc123
# Unlink from all commits without promptinglore unlink abc123 -y
# Unlink from a specific commit onlylore unlink abc123 --commit 1a2b3c4dSample Output
Section titled “Sample Output”Removing a single link:
$ lore unlink c9731a91 --commit a1b2c3dUnlink session c9731a91 from commit a1b2c3d? [y/N] yUnlinked session c9731a91 from commit a1b2c3dRemoving all links for a session:
$ lore unlink c9731a91This will unlink session c9731a91 from: - commit a1b2c3d - commit 8f3e2a1Continue? [y/N] yUnlinked session c9731a91 from 2 commitsIf the session has no links, nothing is removed:
$ lore unlink c9731a91Session c9731a91 has no links to removeOptions
Section titled “Options”| Option | Description |
|---|---|
--commit <SHA> | Only remove the link to this commit (removes all links if omitted) |
-y, --yes | Skip the confirmation prompt |
Session ID Prefix
Section titled “Session ID Prefix”You only need to provide enough characters to uniquely identify a session:
# Full UUIDlore unlink c9731a91-4f2b-4e8a-9c3d-1a2b3c4d5e6f
# Short prefix (if unique)lore unlink c9731a91If the prefix matches multiple sessions, Lore lists the matches and asks for a more specific prefix. The --commit value can likewise be a prefix of the commit SHA.
See Also
Section titled “See Also”- lore link - Link a session to a commit
- lore show - View a session’s linked commits
- lore delete - Permanently delete a session