imranansari / regit-go

ReGit: A Tiny Git-Compatible Git Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReGit - A Tiny Git-compatible Git Implementation

ReGit is a tiny Git implementation written in Golang. It uses the same underlying file formats as Git. Therefore, all the changes made by ReGit can be checked by Git.

This project does not aim at implementing all the features of Git. It is just an experimental implementation for learning purpose.

Note: This project is still under active development. Many of the details haven't been handled carefully. Also, it has been tested on macOS only.

Available Commands

  • regit-go init
  • regit-go add [file names]
    • Ex: regit-go add code/main.py README.md code/lib/util.py
  • regit-go commit -m [message]
    • -m option is required to supply.
    • Ex: regit-go commit -m "init commit"
  • regit-go checkout [path names]
    • Ex: regit-go checkout code/main.py code/lib/util.py
  • regit-go branch [branch name]
    • Ex: regit-go branch develop
  • regit-go log
    • It will invoke the less command to print the commit logs
  • regit-go merge [branch name]
    • Currently, only fast-forward merge is supported

About

ReGit: A Tiny Git-Compatible Git Implementation

License:MIT License


Languages

Language:Go 100.0%