Skip to content

mehtaarn000/SuperSourceControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperSourceControl

A local version control system written in Go. I built this as a way to introduce myself to Golang. (v2.1)

Installation

git clone https://github.com/mehtaarn000/SuperSourceControl
cd SuperSourceControl
go build ssc.go

Then, move the ssc executable file (generated by the Go compiler) to somewhere in your $PATH.

Quickstart

To start a project:

mkdir testdir
cd testdir
ssc init

Then, create a file and commit:

touch "hello world" > helloworld.txt
ssc commit -m "Initial commit"

Log all commits:

ssc log -m

Usage

Simpily run ssc --help to see usage.

Update version

On Unix-like systems, two dependencies are required. jq and curl. You can use your operating systems package manager to install these. When you are ready to update, run either of the following commands:

ssc update

or if you are using an older version of SuperSourceControl:

curl https://raw.githubusercontent.com/mehtaarn000/SuperSourceControl/master/update.sh | sh