An open API service indexing awesome lists of open source software.

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.

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)