Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Git 🚀

A basic implementation inspired by early versions of Git using Node.js. This educational project implements core Git concepts in a simplified way to help understand the fundamentals of version control systems.

Features ✨

  • 📁 Initialize a new Git repository
  • ➕ Add files to staging area
  • 💾 Commit changes with messages
  • 📊 Check repository status
  • 🌿 Create and manage branches
  • 🔄 Switch between branches

Installation 🛠️

npm install mini-git

Usage 📖

Initialize a new repository

npm run git-init

Add files to staging

npm run git-add -- file1.txt file2.txt

Commit changes

npm run git-commit -- -m "your commit message"

Check status

npm run git-status

Create a new branch

npm run git-branch -- feature-branch

Switch to a branch

npm run git-checkout -- feature-branch

Project Structure 📂

.
├── src/
│   ├── commands/      # Command implementations
│   └── index.js       # CLI entry point
├── package.json
└── README.md

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License 📄

This project is licensed under the MIT License - see the LICENSE file for details.

Author 👨‍💻

@abakermi

About

A basic implementation inspired by early versions of Git using Node.js"

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages