A Git subcommand to do github organization.
go get -u github.com/yhino/git-org
git-org [flags] [command]
Available Commands:
grep Grep the specified github organization repository
help Help about any command
repos Show the specified github organization repository
version Print the version
Flags:
-h, --help help for git-org
-o, --org string organization name
Use "git-org [command] --help" for more information about a command.
Grep the specified github organization repository
git org grep -o your_organization -- [git-grep options] [pattern]
Example:
- organization is
hogehoge
- pattern is
foobar
- grep options
- ignore-case
- line-number
git org grep -o hogehoge -- -i -n foobar
To access organization's private repositories, generate a GitHub Personal Access Token, make sure you have the following environment variable.
export GITHUB_ACCESS_TOKEN=your_personal_access_token
or your configuration to your .env
file in the home directory:
GITHUB_ACCESS_TOKEN=your_personal_access_token