Skip to content

faceyacc/gitloco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLoco

GitLoco is Git implementation inspired by Thibault Polge's Write yourself a Git! GitLoco can initialize a repository, create commits and clone public repository from GitHub.

Usage/Examples

Initalize a Git repository

gitloco init

Store the data from <file> as a blob in .git/objects and print a 40-char SHA to stdout

gitloco hash-object --w=<file>

Print the raw contents of an object to stdout, uncompressed and header removed

gitloco cat-file <blob_sha>

Create a snapshot of your curreent git repository

gitloco write-tree

Inspect a tree object and list the contents of a tree object

gitloco ls-tree <tree_sha>

Commit a tree object

gitloco commit-tree <tree_object> name <Jane Doe> email <janeydoesit@email.com> m <"Just commiting here...">

Commit a tree object with optinal parent hash object using the p flag

gitloco commit-tree <tree_object> p <paren_hash_object> name <Jane Doe> email <janeydoesit@email.com> m <"Just commiting here...">

Roadmap

  • Publish and distribute with Homebrew.
  • Add write-tree command to create tree objects.
  • Add commit-tree command to allow users to create a commit using a tree_sha.
  • Add clone command to allow users to clone public repos from Github.

Support

For support, email me at justfacey@gmail.com.

About

Tiny Git implementation built in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages