Skip to main content

Install

Requires Node.js 22.13.0+.
git clone https://github.com/abhiaiyer91/wit.git
cd wit
npm install && npm run build && npm link
Verify it works:
wit --help

Your First Repository

mkdir my-project && cd my-project
wit init

Basic Workflow

# Stage and commit
wit add .
wit commit -m "Initial commit"

# Check status
wit status
wit log

Branches

wit switch -c feature    # create and switch
wit switch main          # switch back
wit branch -d feature    # delete
Uncommitted changes are automatically saved when switching and restored when you return.

Undo Mistakes

wit undo              # undo last operation
wit undo --steps 3    # undo last 3 operations
wit uncommit          # undo commit, keep changes staged

AI Features (Optional)

Set an API key:
export OPENAI_API_KEY=sk-your-key
# or
export ANTHROPIC_API_KEY=sk-ant-your-key
Then:
wit ai commit -a -x    # AI writes commit message
wit ai review          # AI reviews staged changes
wit search "where is auth handled?"

Visual Interfaces

wit web    # browser UI at localhost:3847
wit ui     # terminal UI
wit graph  # ASCII commit graph

Working with GitHub

wit clone https://github.com/user/repo.git
wit push origin main
wit pull
Full GitHub compatibility. Works with any Git remote.

Next Steps