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.
- 📁 Initialize a new Git repository
- ➕ Add files to staging area
- 💾 Commit changes with messages
- 📊 Check repository status
- 🌿 Create and manage branches
- 🔄 Switch between branches
npm install mini-gitnpm run git-initnpm run git-add -- file1.txt file2.txtnpm run git-commit -- -m "your commit message"npm run git-statusnpm run git-branch -- feature-branchnpm run git-checkout -- feature-branch.
├── src/
│ ├── commands/ # Command implementations
│ └── index.js # CLI entry point
├── package.json
└── README.md
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.