|
|
|
@ -11,10 +11,12 @@ A work in progress git command for managing golang vendor dependencies. |
|
|
|
* `git vendor update <dir> <ref>` - update a vendored dependency to `<ref>`. |
|
|
|
|
|
|
|
## Installation |
|
|
|
|
|
|
|
``` |
|
|
|
(wget -O /usr/local/bin/git-vendor https://raw.githubusercontent.com/brettlangdon/git-vendor/master/git-vendor && chmod +x /usr/local/bin/git-vendor) |
|
|
|
``` |
|
|
|
|
|
|
|
## Example |
|
|
|
Checkout github.com/brettlangdon/forge@v0.1.6 under vendor/github.com/brettlangdon/forge |
|
|
|
Checkout `github.com/brettlangdon/forge@v0.1.6` under `vendor/github.com/brettlangdon/forge` |
|
|
|
``` |
|
|
|
$ git vendor add https://github.com/brettlangdon/forge v0.1.6 |
|
|
|
git fetch https://github.com/brettlangdon/forge v0.1.6 |
|
|
|
|