https://github.com/gablemathias/gabe-git
A git implementation that's capable of initializing a repository, creating commits and cloning a public repository.
https://github.com/gablemathias/gabe-git
git ruby
Last synced: 2 months ago
JSON representation
A git implementation that's capable of initializing a repository, creating commits and cloning a public repository.
- Host: GitHub
- URL: https://github.com/gablemathias/gabe-git
- Owner: gablemathias
- Created: 2022-12-24T19:27:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T19:52:44.000Z (over 3 years ago)
- Last Synced: 2025-05-26T00:10:34.669Z (about 1 year ago)
- Topics: git, ruby
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gabe Git Implementation
A small git implementation that's capable of initializing a repository, creating commits and cloning a public repository.
# How to use it?
This repo already has a git copy repo created so in your terminal you can type:
```sh
./gabe_git.sh
```
If you face permission errors you can run CHMOD and change the permissions to be able to read, create and write the files through the commands
Full-permission example:
```sh
chmod 777 gabe_git.sh
```
If not sure giving full permission, you can read about the others permissions here:
https://kb.iu.edu/d/abdb#:~:text=To%20change%20file%20and%20directory,%2C%20write%2C%20and%20execute%20permissions.
Alternative:
You can run the direct command below instead of using `gabe_git.sh` as well, considering that your user has the permission
```sh
ruby main.rb
```
Available Commands:
- init
- cat-file (opt-flag: -p)
- hash-object (opt-flag: -w)
- ls-tree (opt-flag --only-name)