bitgit
v0.1.1
Published
git push for Bitcoin — inscribe content, register domains, manage tokens on BSV
Maintainers
Readme
bitgit
git push for Bitcoin. Inscribe content, register domains, and manage tokens on BSV.
npm install -g bitgitCommands
bit init # scaffold .bit.yaml for your project
bit push # git push + inscribe changed content on BSV
bit register <domain> # inscribe a domain on DNS-DEX
bit status # show wallet, domain, token & version chainQuick Start
# 1. Set up your project
cd your-project
bit init
# 2. Configure your BSV key
export BOASE_TREASURY_PRIVATE_KEY="your-wif-key"
# 3. Push content to Bitcoin
bit pushbit push does two things:
git pushto your remote (if there are commits to push)- Inscribes changed content on BSV (OP_RETURN with Bitcoin Schema)
Every inscription is chained — each transaction's change output feeds the next input, so you can inscribe dozens of files in one session without waiting for confirmations.
.bit.yaml
bit init creates a .bit.yaml in your project root:
project:
name: my-project
domain: my-project.com
token: MYTOKEN
wallet:
key_env: BOASE_TREASURY_PRIVATE_KEY
content:
type: blog # blog | repo | domain | custom
source: content/blog/ # directory to watch
format: bitcoin_schema # bitcoin_schema | op_return
protocol: my-project-blog
db:
supabase_url_env: NEXT_PUBLIC_SUPABASE_URL
supabase_key_env: SUPABASE_SERVICE_ROLE_KEY
version_table: blog_post_versions
dns_dex:
token_symbol: $my-project.comInscription Formats
Bitcoin Schema (default)
Uses the B + MAP + AIP Bitcom protocols:
- B — content storage (full markdown/JSON)
- MAP — queryable metadata (indexed by GorillaPool)
- AIP — cryptographic authorship proof (ECDSA signature)
Simple OP_RETURN
OP_FALSE OP_RETURN <protocol> <content-type> <payload>
DNS-DEX Domain Registration
bit register kwegwong.com
bit register kwegwong.com --category=culture --supply=1000000000Inscribes a dnsdex-domain token on BSV and prints the DNS TXT records to add for verification.
Broadcast Fallback Chain
Transactions are broadcast with automatic fallback:
- WhatsOnChain API
- GorillaPool ARC
- TAAL ARC
Dry Run
All commands support --dry-run to preview without broadcasting:
bit push --dry-run
bit register example.com --dry-runEnvironment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| BOASE_TREASURY_PRIVATE_KEY | Yes | BSV private key (WIF format) |
| NEXT_PUBLIC_SUPABASE_URL | Optional | Supabase URL for version chain DB |
| SUPABASE_SERVICE_ROLE_KEY | Optional | Supabase service role key |
Lineage
bitgit is the evolution of bgit (v2, 2026). Same DNA — commit/push to Bitcoin — but instead of wrapping git with a payment gate, bit adds Bitcoin alongside git.
Part of the PATH Protocol
- $401 — Identity
- $402 — Payment
- $403 — Conditions
- DNS-DEX — Domain tokenization
- b0ase.com — Venture studio
License
MIT
