GitLite is a lightweight version control system inspired by Git. It was created to gain a deeper understanding of Git's internals and to offer a simplified alternative for basic version control operations.
The primary motive behind creating GitLite was to explore and understand the inner workings of Git. By developing this project, I aimed to demystify the complex processes involved in version control systems and to provide a clear and concise implementation of the fundamental concepts. Additionally, the fun part of this project is that while i created GitLite, I used Git to push the code to GitHub!
To start using GitLite locally, follow these steps:
First, you need to allow write operations for the script. Run the following command to set the necessary permissions:
chmod +x gitLite.js./gitLite.js init./gitLite.js add <files...>You can also add all files (except those listed in .gitignore) by using:
./gitLite.js add ../gitLite.js commit "Your commit message"./gitLite.js log./gitLite.js status./gitLite.js diff <commitId>./gitLite.js push./gitLite.js branch <branchName>./gitLite.js checkout <branchName>Feel free to explore GitLite and get a hands-on understanding of how version control systems work.