Skip to content

yhino/git-org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-org

Build Status FOSSA Status

A Git subcommand to do github organization.

Install

go get -u github.com/yhino/git-org

Usage

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

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

Options

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

License

FOSSA Status

About

A Git subcommand to do github orgaization

Resources

Stars

Watchers

Forks

Packages

No packages published