Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 863 Bytes

README.md

File metadata and controls

41 lines (22 loc) · 863 Bytes

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