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
- Host: GitHub
- URL: https://github.com/craigtaub/our-own-git
- Owner: craigtaub
- Created: 2020-12-29T18:10:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T00:11:48.000Z (about 4 years ago)
- Last Synced: 2023-04-12T09:44:18.962Z (almost 3 years ago)
- Topics: git, github, javascript, nodejs, version-control-system
- Language: JavaScript
- Homepage: https://craigtaub.dev/under-the-hood-of-git
- Size: 20.5 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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