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 testto run the teststask installto install thegit-goto the GOPATHtask buildto create agitbinary in the./bindirectorytask dev -wto have the binary at./bin/gitautomatically 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.