Skip to content

sahilmane69/git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

mygit

Tiny Git-style version control for learning how commits, branches, and stored objects work.

Data lives in .mygit.

Commands:

  • init create the repo
  • add stage files
  • commit save a snapshot
  • status show changes
  • log show history
  • branch list or create branches
  • checkout switch branches
  • cat-file print an object

Example

node git.js init
echo "notes" > notes.txt
node git.js add notes.txt
node git.js commit -m "first commit"
node git.js log
node git.js branch work
node git.js checkout work

About

Build your own Git in JavaScript — a minimal version control system that demonstrates how commits, branches, and object storage work behind the scenes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors