Skip to content

someotherself/notso_git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A very minimal git clone written in C

Work in progress. Only the core git commands are partially implemented.

How to run

git clone https://github.com/someotherself/notso_git.git && cd notso_git

Compile the build tool

cc -o nob nob.c

Build the project

./nob

Run it

./build/notsogit init

Commands implemented:

init - Initializes a repository under ./.notso_git
add - Add files to the staging area. No flags available.
hash-object - Create blobs. '-w' flag is available to write to disk.
cat-file - View git objects. Works for blobs and tree. However, creating trees is not yet implemented.
ls-files - List contents from the index file.

About

Minimal git clone written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published