parth-gix-cli
v1.0.6
Published
> A custom CLI tool that mimics essential Git commands to interact with GitHub repositories. Built while learning full-stack development and diving deep into how Git + GitHub actually work behind the scenes.
Readme
parth-gix-cli
A custom CLI tool that mimics essential Git commands to interact with GitHub repositories. Built while learning full-stack development and diving deep into how Git + GitHub actually work behind the scenes.
📚 Table of Contents
About
Ever wondered what happens behind those git add, git commit, and git push commands? I did. So while learning full-stack development, I built this custom CLI to replicate core Git functionalities and see how version control tools interact with remote servers like GitHub.
This CLI supports:
- Initializing a repo
- Adding files
- Committing changes
- Managing remotes
- Pushing and pulling code
Installation
Install it globally using npm:
npm install -g npm i parth-gix-cliOnce installed, you can run parth-gix-cli commands right from your terminal.
Usage
The syntax is:
gix <command> [options]Available Commands
| Command | Description |
| :----------------- | :------------------------------------------ |
| init | Initialize a new Git repository |
| add <filePath> | Add a file to the staging area |
| commit <message> | Commit staged changes with a commit message |
| remote <link> | Add a remote repository URL |
| push | Push changes to the remote repository |
| pull |Download all files and folders from the remote repository |
Examples
Initialize a new repository:
gix initAdd a file to staging:
gix add app.jsCommit your changes:
gix commit "Added app.js"Add a remote repository:
gix remote https://github.com/username/repo.gitPush your changes:
gix pushDownload all files and folders from the remote repository:
gix pullWhy I Built This
As part of my journey into full-stack development, I wanted to understand not just how to use tools like Git and GitHub — but how they work internally. This project started out of pure curiosity and quickly turned into a hands-on way to learn about:
How command-line tools are built in Node.js
How local repositories and remote servers communicate
How full-stack applications are structured and distributed
And honestly, it made me love coding even more.
Contributing
Got an idea to improve this tool? Found a bug? PRs and issues are welcome! Fork the repo, make your changes, and let’s build cool stuff together.
Parth’s Note:
This was a curiosity-driven project for learning purposes, but who knows — maybe it’ll inspire someone else to peek under the hood too.
