Basic git implementation in pure Go
- init
- hash-object
- cat-file
- Retrieve objects
- Write loose objects
- Read/Write References
See the CLI project
See the Library project
We use task as task runner / build tool. The main commands are:
task test
to run the teststask install
to install thegit-go
to the GOPATHtask build
to create agit
binary in the./bin
directorytask dev -w
to have the binary at./bin/git
automatically rebuilt with every change in the code
The git package should contain everything you need to do most of the common operations. For more advanced operations, you should use the ginternals package.
You can take a look at our smoke tests for examples of usage.