Skip to content
alexandreLITHAUDPublic

About

A simple git copycat in go using cobra to challenge myself and further my understanding of git 🌳

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

68 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Own-Git 🌳

Build Lint Tests Coverage

A simple git copycat in go using cobra to challenge myself and further my understanding of git 🌳


πŸš€ Overview

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

πŸ“¦ Installation

You can install the latest version with Go:

go install github.com/alexandreLITHAUD/Own-Git@latest

Or download a release binary from the Releases page.


πŸ§‘β€πŸ’» Usage

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 version

For full help:

own help

🧰 Available Commands

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!


πŸ“„ Documentation

The documentation is automatically generated with Docusaurus and hosted on GitHub Pages:

🌐 https://alexandrelithaud.github.io/Own-Git


πŸ“ˆ CI/CD & Tooling

  • βœ… Tests & coverage with GitHub Actions
  • 🧹 Code linting and formatting
  • πŸ›‘οΈ Security analysis with gosec
  • πŸ“„ Auto-generated CLI docs with cobra/doc
  • πŸ§ͺ Benchmarking with Go's testing package

🀝 Contributing

Contributions are welcome!
Feel free to fork, explore, and open a pull request πŸ™Œ


πŸ“œ License

Own-Git is licensed under the MIT License.

About

A simple git copycat in go using cobra to challenge myself and further my understanding of git 🌳

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages