Commit syntax
When running commands, a commit can be identified by its local ID (just the number, e.g. 3) or its server ID (prefixed with c/ or c, e.g. c/7 and c7). Both forms may optionally append a version with v.
Log
Shows the commit tree around your current commit. Running tw with no command is the same as tw log.
Status
Shows the changes in your working directory compared to the current commit, followed by the commit tree.
Commit
A commit can be understood as snapshot of all tracked files in the repository. Commits are the fundamental block in Twigg workflow, you first make changes you want then commit.
Push
Pushes your current commit and all parent commits until it reaches one thatβs already submitted.
Pull
Pulls commits from the server to local.
Init
Initializes Twigg in the current directory.
Rebase
Creates a new version of a commit by changing its parent to a new target. All of its descendant commits are automatically rebased to the new version as well.
Amend
To edit a commit just goto it and start editing. You can check your changes with tw st, or use the VS code extension for a more detailed comparison.
Restore
Restores a previous version of a commit.
Goto
Loads a commit into the working directory and makes it your current commit. Use any valid commit syntax or alias:
Up and Down
Move through the commit stack one step at a time. Both commands load the target commit into the working directory, like goto.
Top
Goes to the last submitted commit. That's the tip of the repository's main history, which is where you usually want to start a new stack of commits.
Load
Loads the files from a commit into your working directory - without creating a new commit.
Warp
Makes a commit your current commit without touching the working directory. Use any valid commit syntax:
Clean
Discards all uncommitted changes by reloading the current commit's files into the working directory.
Key
Set CLI key so the server can know who you are.
Key dump
Prints the CLI key stored for this repository, the one you set with key or when cloning:
Server
Sets the path to a repository on the Twigg server (https
Set server ID
Sets the server id the server will give to the next commit pushed to this repository. See commit ids.
Diff
Shows which files were created, deleted or modified between two commits.
CI List
Shows which CI.json files would be triggered if you pushed or submitted the current commit:
Bug Get
Shows a bug of the repository, with its description and timeline: