https://github.com/abhiraj-ku/git-it
This project is a simple implementation of Git in JavaScript, providing basic Git functionality for managing version control in a local environment.
https://github.com/abhiraj-ku/git-it
git github
Last synced: 2 months ago
JSON representation
This project is a simple implementation of Git in JavaScript, providing basic Git functionality for managing version control in a local environment.
- Host: GitHub
- URL: https://github.com/abhiraj-ku/git-it
- Owner: abhiraj-ku
- Created: 2024-02-12T09:55:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T13:04:17.000Z (over 2 years ago)
- Last Synced: 2026-01-02T05:00:49.578Z (6 months ago)
- Topics: git, github
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Git Implementation in JavaScript
This project is a simple implementation of Git in JavaScript, providing basic Git functionality for managing version control in a local environment.
## Usage
To use this Git implementation, follow the steps below:
1. Clone or download the repository to your local machine.
2. Open a terminal window and navigate to the project directory.
3. Run the Node.js script with one of the following commands:
```bash
# Initialize an empty Git repository in the current directory
node your_script.js init
# Display the contents of a Git object
node your_script.js cat-file -p
# Create a blob object
node your_script.js hash-object -w
```
Replace `` with the hash of the Git object you want to inspect.
## Available Commands
- `init`: Initializes an empty Git repository in the current directory.
- `cat-file -p `: Displays the contents of a Git object identified by its hash.
- `hash-object -w = 10.0.0)
## Contributions
Contributions to this project are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.