Skip to content

adrianton3/git-under

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-under

Basic git client in JavaScript created for educational purposes.

Supports:

  • init
  • add <path/to/file.txt>
  • commit <message>
  • cat-file <type> <hash>
  • log
  • branch [name]
  • checkout <branch|hash>
  • push <url> - pushing also requires the NDR_USERNAME and NDR_PASSWORD environment variables to hold the credentials for the remote repository
  • objects-delta <descendant-hash> <ancestor-hash> - computes the difference of objects reachable from two commits. This is used to push data upstream.

See the scripts in tools for use examples.

Objects follow the git format; index and HEAD do not.

Loosely follows previous efforts like pygit and gitlet.

About

Basic, easy to follow git client from scratch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published