craigtaub / our-own-git

Git in ~100 lines of code

Home Page:https://craigtaub.dev/under-the-hood-of-git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

our-own-git

Git in <100 lines of code.

Included

  • repository
  • working directory
  • staging
  • comitting
  • status checks

Not included

  • comparing change chunks
  • packfiles
  • deltas
  • branches
  • tags
  • merging

Commands

  • npm run test -> run integration tests
  • npm run repo:clean -> clean repository
  • npm run repo:init -> initialise repository
  • npm run repo:status -> changes local vs staging vs comitted
  • npm run repo:add -> add files to staging
  • npm run repo:commit -> commit staged changes
  • npm run repo:diff -> show changes for file against that comitted TODO

Files

  • /src -> location of working directory / application
  • /bin -> location of version control

About

Git in ~100 lines of code

https://craigtaub.dev/under-the-hood-of-git


Languages

Language:JavaScript 100.0%