Skip to content

vX is a very basic version control system 🔥

Notifications You must be signed in to change notification settings

Abdulsametileri/vX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vX

vX is a very basic version control system. For details at my medium blog How was I build a version control system (VCS) using pure Go 🚀

Demo

asciicast

Installation

Brew

brew install abdulsametileri/tap/vx

Golang

go install github.com/Abdulsametileri/vX/cmd/vx@latest

vX Commands

All commands: init, add, status, commit, checkout, history

vx init

vx add {file, directory}

  • vx add a.go
  • vx add src/

vx status

vx commit -m "message"

  • vx commit -m "init"

vx checkout {commit_number}

  • vx checkout v1 -> checkout to first commit
  • vx checkout v10 -> checkout to tenth commit

vx history