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.
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.
Load
Loads the files from a commit into your working directory - without creating a new commit.
Key
Set CLI key so the server can know who you are.
Server
Sets the path to a repository on the Twigg server (https
CI List
Shows which CI.json files would be triggered if you pushed or submitted the current commit: