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

https://github.com/craigtaub/our-own-git

Git in ~100 lines of code
https://github.com/craigtaub/our-own-git

git github javascript nodejs version-control-system

Last synced: 7 months ago
JSON representation

Git in ~100 lines of code

Awesome Lists containing this project

README

          

# 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