Sit CLI.

Simplicity is the ultimate sophistication. A version control system built for clarity and speed.

Installation

Sit is a portable Java application. Install it in seconds with a single command, or follow the manual steps below.

Quick Install (Recommended)

Open PowerShell and run this one-liner — it downloads the latest release and adds sit to your PATH automatically:

irm https://raw.githubusercontent.com/abhishek0112cs221008/SIT/main/install.ps1 | iex

Open a new terminal and run sit version — you're done.

Prerequisites

Java 17 or higher must be installed on your system.

# Check your Java version first
java --version

Step 1 — Download

Download sit.jar and sit.bat from the latest GitHub Release:

↓  Download Latest Release

Step 2 — Place the files

Create a folder (e.g. C:\sit\) and put both files inside it. They must stay together.

C:\sit\
  ├── sit.jar
  └── sit.bat

Step 3 — Add to PATH

So you can run sit from any terminal:

# Search "Environment Variables" in the Start Menu
# System Variables → Path → Edit → New
# Add: C:\sit\
# Click OK on all dialogs, then open a NEW terminal

Step 4 — Verify

sit version

If you see a version output, you're all set.

Core Workflow

The essence of version control in four commands.

Initialize

Start tracking a new project.

sit init

Status

See the state of your working directory.

sit status

Stage

Prepare files for the snapshot.

sit add .

Commit

Save the snapshot to history.

sit commit -m "Initial commit"

Branching & Merging

Non-linear development made human-readable.

Branch

Create separate contexts for features.

sit branch feature-login

Checkout

Switch contexts instantly.

sit checkout feature-login

Merge

Combine histories using Fast-Forward.

sit checkout main
sit merge feature-login

Deep Inspection

Understanding changes line-by-line.

sit diff

Architecture

Built on a clean Controller-Service-Repository pattern in Java.

Data is stored in .sit/objects using SHA-1 content addressing, similar to industry standards.