bit-vcs
v1.0.0
Published
10x Next-Gen Version Control System with Time Machine Undo/Redo & Embedded Visual Dashboard
Maintainers
Readme
💎 Bit — 10x Next-Gen Version Control System
Bit is an ultra-fast, modern, developer-friendly Version Control System written in Go. It delivers a 10x better developer experience than legacy Git with built-in transaction safety, deterministic 1-click Time Machine undo/redo, smart auto-staging, Myers diffing, 3-way branching & merging with an embedded visual Web Studio, history squashing, cherry-picking, automated bug hunting via binary search bisecting, Large File Storage (Bit-LFS), Secret Shield pre-commit vulnerability auditing, AI PR & commit message generation, and full bi-directional GitHub/GitLab interoperability.
██████╗ ██╗████████╗
██╔══██╗██║╚══██╔══╝
██████╔╝██║ ██║
██╔══██╗██║ ██║
██████╔╝██║ ██║ v1.0.0 (10x Next-Gen VCS)
╚═════╝ ╚═╝ ╚═╝ ⚡ Quick 1-Command Universal Installation
🪟 Windows (PowerShell)
irm https://raw.githubusercontent.com/tanmaya2713/Bit-Next-Gen-VSC/main/install.ps1 | iex🍎 macOS & 🐧 Linux (Bash / Zsh)
curl -fsSL https://raw.githubusercontent.com/tanmaya2713/Bit-Next-Gen-VSC/main/install.sh | bash📦 Node.js / NPM (Cross-Platform)
npm install -g bit-vcs📦 Standalone Binaries
Download pre-compiled standalone executables directly from GitHub Releases:
- Windows (x64 / ARM64):
bit-windows-amd64.exe/bit-windows-arm64.exe - macOS (Apple Silicon M1-M4 / Intel x64):
bit-darwin-arm64/bit-darwin-amd64 - Linux (x64 / ARM64 / Raspberry Pi):
bit-linux-amd64/bit-linux-arm64 - FreeBSD:
bit-freebsd-amd64
🚀 Why Bit is 10x Better Than Git
| Feature | Legacy Git | 💎 Bit (Next-Gen VCS) |
| :--- | :--- | :--- |
| Safety & Rollbacks | Dangerous git reset --hard destroys work; cryptic reflog syntax. | Time Machine Journal: 1-click bit undo and bit redo for every commit, branch switch, and merge. |
| Commit Workflow | 2-step ceremony (git add . then git commit -m "..."). | 1-Step bit save -m "...": Auto-stages all files and commits instantly. |
| Security Auditing | None built-in (requires complex 3rd-party pre-commit hooks). | Built-in bit review: Secret Shield scans workspace for leaked AWS, GitHub, Google API keys before commits. |
| AI Intelligence | None. | bit summarize & bit save: AI analyzes DAG diffs to produce conventional commit messages & full GitHub/GitLab PR markdown. |
| Visual Desktop Studio | Requires separate heavyweight 3rd-party apps (GitKraken, Sourcetree). | Built-in bit ui: Zero-dependency Web Studio with Repo Hub, 3-Way Conflict Resolver, Live Monitoring, CI Test Runner, and Themes. |
| Bug Hunting | Manual commit tracking. | Automated bit bisect: Binary search algorithm isolates regression commits automatically. |
| Git Interoperability | Locked into git ecosystem. | Full Compatibility: Run any Git command via bit <cmd> with direct passthrough + 1-step push to GitHub/GitLab. |
🎨 Windows Desktop Suite
When installed on Windows, Bit creates a dedicated Start Menu app folder with official high-resolution Diamond icons:
- 💎 Bit GUI: Launches the standalone desktop Web Studio with Repo Hub, 3-Way Merge Conflict Resolver, Live Monitoring gauges, Stashes, Tags, CI Runner, and Themes.
- 💎 Bit Bash: Developer Linux shell environment with MinGW two-line prompt and 200+ GNU coreutils (
grep,cat,awk,curl,find,ssh). - 💎 Bit CMD: Command Prompt environment with custom
[BIT CMD]prompt and pre-loadedbit+gitaliases. - 💎 Bit FAQs: Clean, modern SVG-based documentation answering common version control questions.
- 💎 Bit Release Notes: Version 1.0.0 changelog, architecture specifications, and release highlights.
📖 Complete Bit Command Reference
All native Bit commands, their syntax, options, and working mechanisms:
1. Repository Lifecycle & Daily Development
bit init [path]
- How it works: Initializes a new Bit repository in the current or specified directory. Creates the
.bitmetadata directory containing the Content-Addressable Storage (CAS) object store (.bit/objects), branch references (.bit/refs), HEAD pointer (.bit/HEAD), transaction journal (.bit/journal.json), and generates a smart default.bitignore. - Example:
bit init bit init C:\Projects\MyNewApp
bit clone <source> [target]
- How it works: Clones an existing repository into a new local directory. If
<source>is a Git URL (https://github.com/...,https://gitlab.com/..., orgit@...), Bit executes the clone and automatically imports the entire Git commit history into Bit's CAS object graph. If<source>is a Bit server or local path, Bit performs native object streaming. - Example:
bit clone https://github.com/tanmaya2713/Bit-Next-Gen-VSC.git bit clone C:\Repos\Backend my-backend-copy
bit status (alias: bit st)
- How it works: Traverses the working directory while respecting
.bitignorerules, compares file hashes with the current staging index and HEAD commit tree, and reports:- Active branch name and HEAD commit hash.
- Staged changes: Files staged for the next commit.
- Unstaged changes: Modified tracked files.
- Untracked files: New files not yet added to VCS.
- Deleted files: Files removed from disk.
- Example:
bit status
bit add <file...> (alias: bit stage)
- How it works: Reads specified files (or
.for all files in the working tree), generates SHA-256 content-addressable blobs in.bit/objects, and updates the staging index (.bit/index). - Example:
bit add main.go README.md bit add .
bit commit -m "<message>" (alias: bit ci)
- How it works: Takes currently staged files, builds a Merkle Tree object in
.bit/objects, creates an immutable Commit object pointing to the Tree and parent commit(s), updates the active branch reference to the new commit hash, and appends a transaction record to the Time Machine Journal. - Flags:
-m "<msg>": Commit description.-S: Signs the commit with local GPG/PGP key.
- Example:
bit commit -m "feat: add user authentication endpoint" bit commit -S -m "feat: verified release commit"
bit save -m "<message>"
- How it works: 1-step smart snapshot. Runs pre-commit Secret Shield scanner to protect against leaked credentials, auto-stages all modified and untracked files, generates an AI conventional commit message if no message was provided, commits the state, and records the action in the journal.
- Example:
bit save -m "feat: implement shopping cart" bit save # Auto-generates smart message based on diff
2. Time Machine & Undo Superpowers
bit undo
- How it works: Inspects
.bit/journal.jsonfor the last recorded action (commit, branch checkout, merge, or squash), restores the previous HEAD commit and working tree state deterministically, and moves the journal pointer backward without data loss. - Example:
bit undo
bit redo
- How it works: Replays forward an undone transaction from
.bit/journal.json, restoring the forward commit hash and working tree state. - Example:
bit redo
3. Branching, Merging & Conflict Resolution
bit branch [name] (alias: bit br)
- How it works: With no arguments, lists all local branches with the active branch highlighted in green with a
*. When<name>is supplied, creates a new branch pointer at current HEAD. - Flags:
-d <name>,--delete <name>: Deletes the specified branch reference.
- Example:
bit branch # List all branches bit branch feature/login # Create branch bit branch -d feature/login # Delete branch
bit switch <branch|commit> (alias: bit checkout, bit co)
- How it works: Updates
.bit/HEADto point to the target branch (or detached commit), extracts the tree snapshot from.bit/objects, and safely restores the working tree directory to match the target commit. - Example:
bit switch feature/login bit switch main bit switch 6c2288d
bit merge <branch>
- How it works: Finds the Best Common Ancestor (BCA) between current HEAD and the target branch. Performs a 3-way merge:
- If changes are non-overlapping: merges cleanly and creates a merge commit with 2 parents.
- If changes conflict: writes standard 3-way conflict markers (
<<<<<<< OURS,=======,>>>>>>> THEIRS) into conflicting files and alerts the user to runbit uifor visual resolution.
- Example:
bit merge feature/login
bit squash <N> [-m "<message>"]
- How it works: Reads the last
Ncommits from current HEAD, collapses all intermediate tree deltas into a single consolidated commit snapshot, and updates the branch reference. - Example:
bit squash 3 -m "feat: complete user profile module"
bit cherry-pick <commit-hash>
- How it works: Computes the diff introduced by
<commit-hash>relative to its parent, applies those changes cleanly onto the current active branch, and creates a new commit snapshot. - Example:
bit cherry-pick 7e2702a
bit bisect <start|good|bad|reset>
- How it works: Automated binary search engine to isolate regression bugs.
bit bisect start: Initiates bisect session.bit bisect bad: Marks current commit as broken.bit bisect good <commit>: Marks known working commit. Bit automatically checks out the midpoint commit for testing until the exact culprit commit is pinpointed.bit bisect reset: Ends bisect and returns to original branch.
- Example:
bit bisect start bit bisect bad bit bisect good v1.0.0 # Test code, then mark: bit bisect good # or bit bisect bad bit bisect reset
4. Inspection, Diffs & History
bit log [limit]
- How it works: Reads the commit DAG starting from HEAD, outputting commit hash, branch decorations, author name, timestamp, and commit message.
- Flags:
--graph,-g: Renders colored ASCII branch merging lanes.--oneline: Compact 1-line format (<hash> (<branch>) <message>).
- Example:
bit log bit log 10 bit log --graph bit log --oneline
bit graph
- How it works: Visualizes the commit DAG directly in the terminal using colored ASCII lane indicators (
◉for HEAD,●for commits,│,│\), branch badges, author info, and relative time badges. - Example:
bit graph
bit diff [commit]
- How it works: Runs Myers Diff algorithm comparing working tree files against the staging index or HEAD commit, displaying colored unified diffs with added (
+) and deleted (-) lines. - Example:
bit diff bit diff 6c2288d
bit blame <file> (alias: bit praise)
- How it works: Analyzes the commit history of
<file>, annotating each line with the commit hash, author name, and date of the last modification. - Example:
bit blame server.go
5. Stashing, Tagging, LFS & Maintenance
bit stash [save <name>] / bit pop [name]
- How it works:
bit stash: Shelves all modified and untracked files into.bit/stash.jsonCAS objects and reverts working directory to clean HEAD.bit pop: Restores the most recent (or named) stash back into the working directory and removes it from the stash stack.bit stash list: Lists all stored stashes.bit stash drop <name>: Removes a stash without applying.
- Example:
bit stash bit stash save "wip-auth-feature" bit stash list bit pop
bit tag [name] [commit]
- How it works: Creates an immutable release milestone tag in
.bit/refs/tags/pointing to HEAD or a specific commit hash. - Flags:
-d <name>,--delete <name>: Deletes the specified tag.
- Example:
bit tag v1.0.0 bit tag v1.1.0 6c2288d bit tag # List all tags bit tag -d v1.0.0 # Delete tag
bit lfs <track|list|push|pull>
- How it works: Large File Storage subsystem. Replaces heavy binary files (e.g.
*.mp4,*.zip,*.onnx) with lightweight SHA-256 pointer files in the Git/Bit tree, storing actual binary payloads in.bit/lfs/objectswith streaming hash deduplication. - Example:
bit lfs track "*.zip" bit lfs track "assets/models/*.bin" bit lfs list
bit stats (alias: bit summary)
- How it works: Scans all tracked files, computes lines of code (LOC), file counts, multi-language distribution percentages (Go, JS, Python, Rust, HTML, etc.), CAS object store disk usage, and contributor commit counts.
- Example:
bit stats
bit gc (alias: bit prune)
- How it works: Garbage collector. Performs mark-and-sweep traversal across all branch refs, tags, and HEAD pointers, identifying unreferenced dangling objects in
.bit/objectsand reclaiming disk space. - Flags:
--dry-run: Reports reclaimable bytes without deleting.
- Example:
bit gc bit gc --dry-run
6. AI Intelligence & Security
bit review (alias: bit audit, bit scan)
- How it works: Secret Shield security engine. Scans all staged, modified, and untracked files for hardcoded secrets, including AWS Access Keys (
AKIA...), GitHub PAT tokens (ghp_...), Google Cloud API keys (AIza...), Slack webhooks, and private cryptographic keys before commits are recorded. - Example:
bit review
bit summarize [base-branch] (alias: bit pr)
- How it works: Analyzes the commit range and diff between current active branch and
[base-branch](default:main). Synthesizes a structured Pull Request markdown template with feature breakdowns, bug fixes, refactoring scope, line counts, and verification checklists ready for GitHub or GitLab. - Example:
bit summarize bit summarize main
7. GUI Studio & Terminal Interfaces
bit ui (alias: bit gui, bit serve, bit dashboard)
- How it works: Launches the embedded high-performance Web Studio server on
http://127.0.0.1:8080(or custom--port) and opens it in your default browser. Includes:- Workspace: Commit DAG timeline, live file status, in-app Diff Inspector, and full-screen diff modals.
- Repo Hub: 1-click Repo creation (
/api/init-repo), Git/Bit cloning (/api/clone-repo), switching, and deleting. - Live Monitoring: CAS object store gauges, LOC language breakdown, and 52-week activity heatmap.
- Stashes & Tags: Visual stash manager and release tag manager.
- Local CI Test Runner: Run
go test ./...or custom test commands with live console log capture and exit badges. - Security Shield: Visual vulnerability scanner list with remediation guides.
- AI PR Generator: In-browser PR markdown synthesis.
- Themes: Switch between Cyberpunk Cyan, Tokyo Night, Monokai Pro, and Obsidian Dark.
- Example:
bit ui bit ui --port 9090
bit tui
- How it works: Launches an interactive ANSI Terminal User Interface directly in your terminal for keyboard-driven navigation of commits, branches, and diffs.
- Example:
bit tui
bit welcome (alias: bit motd, bit banner)
- How it works: Displays the Cyan Diamond developer welcome dashboard with shell diagnostics, active aliases (
bit,b,g,ll), Time Machine Journal status, and quick workflow cheatsheet. - Example:
bit welcome
🔄 Complete Git Command Reference & Interoperability
Bit provides universal Git compatibility. You can run any standard Git command using bit <git-command> — Bit transparently proxies commands to the native Git CLI when applicable while maintaining Bit's state machine.
Git Command Breakdown:
| Git Command | How It Works & What Bit Does |
| :--- | :--- |
| bit push [remote] [branch] | Synchronizes commits with a remote Git repository (GitHub/GitLab) or Bit CAS server. Automatically creates or bridges upstream tracking branches. |
| bit pull [remote] [branch] | Fetches remote changes from GitHub/GitLab or Bit remote and merges them into the current active branch. |
| bit git-push <url> [branch] | Bridges the current Bit commit graph into a downstream Git repository and pushes to the specified Git remote URL. |
| bit git-pull <url> [branch] | Pulls commits from a Git remote repository and imports the commits directly into Bit's CAS object DAG. |
| bit import-git [path] | Converts an existing .git directory into Bit format in under 1 second, preserving commit history, author info, and timestamps. |
| bit git <args...> | Explicitly executes any raw Git command via the underlying Git engine (e.g. bit git remote -v, bit git config --list). |
| git init | Standard Git repository initialization. Bit alternative: bit init. |
| git clone <url> | Clones remote Git repository. Bit alternative: bit clone <url> (clones and auto-imports into Bit). |
| git status | Displays working tree status. Bit alternative: bit status or bit st. |
| git add <files> | Stages files in index. Bit alternative: bit add <files> or bit save. |
| git commit -m "<msg>" | Records staged changes to Git history. Bit alternative: bit commit -m "<msg>". |
| git checkout / git switch | Switches branches or restores files. Bit alternative: bit switch <branch>. |
| git branch | Lists or creates branches. Bit alternative: bit branch. |
| git merge <branch> | Combines branch histories. Bit alternative: bit merge <branch> (with 3-way visual resolution). |
| git rebase <branch> | Re-applies commits on top of another base tip. Bit proxies git rebase cleanly. |
| git reset [--hard] | Undoes commits. Bit superior alternative: bit undo (100% safe, non-destructive rollback). |
| git stash / git stash pop | Shelves and restores uncommitted work. Bit alternative: bit stash / bit pop. |
| git log | Views commit history. Bit alternative: bit log / bit graph (colored ASCII DAG). |
| git diff | Computes Myers line diffs. Bit alternative: bit diff or bit ui Diff Inspector. |
| git remote add <name> <url> | Configures remote endpoint URLs. Bit alternative: bit remote add <name> <url>. |
| git tag <name> | Sets milestone release tags. Bit alternative: bit tag <name>. |
| git cherry-pick <hash> | Applies specific commit changes. Bit alternative: bit cherry-pick <hash>. |
| git blame <file> | Displays line authorship history. Bit alternative: bit blame <file>. |
| git config | Configures user credentials (user.name, user.email). Bit inherits Git configurations seamlessly. |
🛠️ Building From Source
# 1. Clone the repository
git clone https://github.com/tanmaya2713/Bit-Next-Gen-VSC.git
cd bit
# 2. Build local executable
go build -o bit.exe ./cmd/bit
# 3. Run full test suite (all 24 packages)
go test -v ./...
# 4. Install locally to Windows Start Menu and PATH
.\bit.exe install📄 License
Distributed under the MIT License. Free and open-source for developers worldwide. © 2026 Bit Team.
