A simple git copycat in go using cobra to challenge myself and further my understanding of git π³
Own-Git is a minimalist reimplementation of Git built in Go, designed as a hands-on challenge to understand Git's inner workings and improve my skills with:
- π§ Go & Cobra CLI
- π§ͺ Git internals
- π οΈ CLI architecture & testing
- π§ CI/CD pipelines and Go toolchain integration
You can install the latest version with Go:
go install github.com/alexandreLITHAUD/Own-Git@latestOr download a release binary from the Releases page.
own init # Initialize a new repository
own add file.txt # Stage a file
own commit -m "Message" # Commit with a message
own status # Check current status
own version # Show the current versionFor full help:
own help| Command | Description |
|---|---|
init |
Initialize a new repository |
add |
Stage files for commit |
commit |
Commit changes |
status |
Show the repo status |
version |
Show version information |
More commands are being added as the project evolves!
The documentation is automatically generated with Docusaurus and hosted on GitHub Pages:
π https://alexandrelithaud.github.io/Own-Git
- β Tests & coverage with GitHub Actions
- π§Ή Code linting and formatting
- π‘οΈ Security analysis with
gosec - π Auto-generated CLI docs with
cobra/doc - π§ͺ Benchmarking with Go's
testingpackage
Contributions are welcome!
Feel free to fork, explore, and open a pull request π
Own-Git is licensed under the MIT License.