Live demo at "Git Internal" session, NHN HelloWorld seminar.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
blob.py
commit.py
tree.py

README.md

Usage

Make a git repository

$ mkdir -p .git/objects
$ mkdir -p .git/refs
$ mkdir 'ref: refs/heads/master' > .git/HEAD

Move to the repository

$ cd .git

blob

$ echo 'Hello, World!' | python blob.py
8ab686eafeb1f44702738c8b0f24f2567c36da6d

tree

$ python tree.py greet 8ab686eafeb1f44702738c8b0f24f2567c36da6d
c97aabb481c72e9e51f7b3afdf93b7a362a17748

commit

$ python commit.py c97aabb481c72e9e51f7b3afdf93b7a362a17748
c553507ff28583dd64a106ee1f91924d4fc41ef1

See Also

License

This software is distributed under the BSD License.