GitXplorerGitXplorer
e

got

public
3 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
feb7821b4d4b6470acd2a6eae4c98db0bed0650a

got dep command to toggle import statements from Godeps/ to /Users/BatBuddha/Programming/megaGoApps/goApps

eebuchman committed 10 years ago
Unverified
d0a14918dc562dc7b9e6576174f616c1736cd0a2

got branch to see branch for all repos in dir

eebuchman committed 10 years ago
Unverified
e2efbf14312cf3d4ee8ff074b71114e2ce284539

more checkout options

eebuchman committed 10 years ago
Unverified
3a25910b4c48a31f9bad56c0bf39f9ca3671a298

cleanup

eebuchman committed 10 years ago
Unverified
0c2cad9afa3d2c8725c1cf9d5c5bbf0c2ca380fb

checkout exceptions

eebuchman committed 10 years ago
Unverified
507b2a7f5d0971c74489595400370c54e355bba7

readme

eebuchman committed 10 years ago

README

The README file for this repository.

Got

Got is a tool for doing things with go and git that the go tool doesn't do for you by default. It's particularly useful for working with forks of open source projects, where import paths become an issue.

Usage

Replace strings in an entire directory tree

got replace [-d <depth> -p <dirpath>] <oldString> <newString>

Switch import paths to upstream repo, pull, switch back

got pull <remote> <branch>

This does the same thing as running replace, followed by a commit, followed by a git pull, followed by a replace which undoes the first replace.

Check out the same branch across many repositories

got checkout develop

This will cd into every directory in the current one and run git checkout develop. If you want to specify exceptions, add arguments of the form <repo>:<branch>, ie

got checkout develop myrepo:newfeature repo2:master

will cd into every repo and run git checkout develop except in myrepo it will do git checkout newfeature and in repo2 will do git checkout master. To only cd into some directories, just list them, ie.

got checkout develop myrepo anotherepo repo2:master

will checkout myrepo and anotherepo onto develop and repo2 onto master while leaving all others alone.

See which branch every repo in a directory is on

got branch

Toggle the import path in a go directory between the Godep/ vendored packages and the $GOPATH based location

got dep --local github.com/myorg/myrepo

and

got dep --vendor github.com/myorg/myrepo