Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 Gix — A Tiny Git-like CLI Tool

Gix is a minimal version control system built with Node.js. It lets you:

  • init a repo
  • add files
  • commit changes
  • view log
  • show diffs between commits

Perfect for learning how Git works under the hood.

🚀 Setup

  1. Install dependencies:

    npm install
  2. Make the script executable:

    chmod +x gix.mjs
  3. Run it using:

    node gix.mjs <command>

📚 Commands

  • gix init
    Initialize a repo.

  • gix add <file>
    Stage a file.

  • gix commit "message"
    Commit staged files.

  • gix log
    Show commit history.

  • gix show <commit-hash>
    Show commit diff.

💡 Example

gix init
gix add notes.txt
gix commit "Add notes"
gix log
gix show abc123

🧠 Why?

To understand how Git-like systems work: hashing, staging, committing, and diffing — all in plain JavaScript.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

About

Gix is a fun, minimalist CLI tool built with Node.js. It lets you mess around with init, add, commit, log, diff, and cool new branching features, giving you a hands-on feel for version control!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages