got

command module
v0.0.0-...-af6ef3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 7 Imported by: 0

README

Got

Go

A VCS written in Go, made for practice.

Example Usage

got init # In an empty folder

# Create an initial commit
echo "Test File" > test.txt
got commit -m "Initial commit." -a "Nobody"

# Modify the file
echo "Test File Modified" > test.txt
got commit -m "Second commit." -a "Nobody"

# See repository history
got log

Concepts

HEADS - A list of all heads in the repository

CURRENT - The current revision

Commands

got init
got log

Shows the commit history of the current repository, sorted by time. This command works by starting at the heads, then progressively traversing parent pointers.

got commit -m "message" -a "author"
got status
got merge

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL