Skip to content
Arnost55Public

About

a simpler git for everyone written in C#

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

SGit

Simple version control for everyone.

SGit is a lightweight command-line tool that makes saving, tracking, and recovering file changes easy to understand. It uses plain words like save, restore, and set aside instead of developer jargon, and it works on any folder, not just code projects.

Under the hood SGit runs standard Git, so your history stays compatible with every other Git tool.

Features

  • Start tracking any folder with one command
  • Save versions with an optional message
  • See what changed since your last save
  • Go back to any older save without losing history
  • Set changes aside and bring them back later
  • Installs Git for you if it's missing

Commands

Command What it does
sgit init Start tracking this folder
sgit save [message] Save the current state of your files
sgit status Show new, changed, and deleted files since your last save
sgit history Show your past saves
sgit restore <id> Go back to an older save (nothing is lost)
sgit stash [message] Set your changes aside
sgit stash back Bring set-aside changes back
sgit stash list Show what's set aside
sgit install Install Git on this computer
sgit help Show help

Quick start

cd my-folder
sgit init
sgit save "first version"

# ...edit some files...
sgit status
sgit save "added intro"

sgit history
sgit restore <id>

If you skip the message, SGit uses a timestamp. sgit save fixed login bug works too, no quotes needed.

How restore works

restore never deletes your history. SGit first saves any unsaved changes, makes the folder match the older save exactly, then records that as a new save. You can always undo a restore by restoring again.

Building from source

Requires the .NET SDK.

git clone [https://github.com/Arnost55/sgit.git](https://github.com/Arnost55/sgit.git)
cd sgit
dotnet build
dotnet run --project src/SGit -- help

Configuration

SGit stores its settings, including the path to Git, in a YAML file that it creates on first run.

Status

Early version (v0.1). SGit is an experimental learning project, so commands and behavior may change.

License

Licensed under the Apache License 2.0.

About

a simpler git for everyone written in C#

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages