Skip to main content
These are the commands you’ll use most often for day-to-day version control.

init

Create a new wit repository.

Arguments

Examples


add

Stage files for the next commit.

Arguments

Examples


commit

Create a new commit with the staged changes.

Options

Examples

Use wit wip for quick work-in-progress commits with auto-generated messages.

status

Show the working tree status.

Output Explanation

  • Staged changes: Files ready to be committed
  • Unstaged changes: Modified files not yet staged
  • Untracked files: New files not tracked by wit

Example Output


log

Show commit history.

Options

Examples

Example Output


diff

Show changes between commits, or between the working tree and a commit.

Options

Examples

Example Output


Workflow Example

Here’s a typical workflow using these commands: