Skip to content

Instantly share code, notes, and snippets.

@aheadley
Created September 6, 2012 02:11
Show Gist options
  • Save aheadley/3649930 to your computer and use it in GitHub Desktop.
Save aheadley/3649930 to your computer and use it in GitHub Desktop.
dump for git-hub ideas

Usage

git hub <verb> <options>

Examples

  • create repo: git hub repos:create some-project
  • list repos for your user: git hub repos or git hub repos:list
  • list repos for another user: git hub repos other_user
  • fork repo: git hub repos:fork source_user source_repo
  • add github remote: git hub repos:addremote (used while in repo dir)
@eminence
Copy link

eminence commented Sep 6, 2012

  • List open pull requests for this repo: git hub pull_requests list
  • Merge a pull request: git hub pull_request merge [PR number] [branch]

@aheadley
Copy link
Author

aheadley commented Sep 7, 2012

(git-hub)$ git hub pr list
#0807 01c @tswsl1989 Filter out player files not ending in ".dat" -- <https://github.com/overviewer/Minecraft-Overviewer/pull/807>
#0802 01c @Socolin   Support blockid > 255 -- <https://github.com/overviewer/Minecraft-Overviewer/pull/802>
#0797 07c @tswsl1989 Biomes Overlay -- <https://github.com/overviewer/Minecraft-Overviewer/pull/797>
#0723 04c @slyons    GeoJSON layer feature -- <https://github.com/overviewer/Minecraft-Overviewer/pull/723>

@aheadley
Copy link
Author

aheadley commented Sep 7, 2012

(git-hub)$ git hub repos list | head
| 4chan-utils               -- Some useful scripts for 4chan and a python module.
V apache-mod-markdown       -- Markdown filter module for Apache HTTPD Server
V appserver-in-php          -- Generic HTTP applications approach for PHP5.3+ (inspired by Rack and WSGI)
| coldsnap-research         -- 
| detroit-tech-book-club    -- Code for the Detroit Tech Book Club
| dev-four                  -- Linux kernel module for high throughput RFC1149.5-compliant random number generation.
| dibs                      -- Django-based imageboard
| diskyfm                   -- Simple CLI wrapper for listening to DI.FM and Sky.FM music streams.
V django-cannen             -- a collaborative music player based on django and MPD
| git-hub                   -- Git plugin for GitHub integration. Not written/provided/endorsed/supported/etc by GitHub in any way.

@aheadley
Copy link
Author

aheadley commented Sep 7, 2012

help output for some commands:

(git-hub)$ git hub -h
usage: git-hub [-h] [--verbose] [--user USER] [--repo REPO] {pr,repos} ...

git-hub - Do stuff with GitHub

optional arguments:
  -h, --help   show this help message and exit
  --verbose    Display more output
  --user USER  Override target username
  --repo REPO  Override target repo name

GitHub commands:
  {pr,repos}

(git-hub)$ git hub repos -h
usage: git-hub repos [-h] {addremote,create,fork,list} ...

positional arguments:
  {addremote,create,fork,list}

optional arguments:
  -h, --help            show this help message and exit

(git-hub)$ git hub repos create -h
usage: git-hub repos create [-h] [--has-wiki] [--has-downloads]
                            [--in-org IN_ORG] [--private] [--has-issues]
                            [--homepage HOMEPAGE] [--description DESCRIPTION]
                            NAME

positional arguments:
  NAME

optional arguments:
  -h, --help            show this help message and exit
  --has-wiki
  --has-downloads
  --in-org IN_ORG
  --private
  --has-issues
  --homepage HOMEPAGE
  --description DESCRIPTION

(git-hub)$ git hub repos list -h
usage: git-hub repos list [-h] [--repo-type {all,owner,public,private,member}]

optional arguments:
  -h, --help            show this help message and exit
  --repo-type {all,owner,public,private,member}

(git-hub)$ git hub pr -h
usage: git-hub pr [-h] {list,merge} ...

positional arguments:
  {list,merge}

optional arguments:
  -h, --help    show this help message and exit

(git-hub)$ git hub pr merge -h
usage: git-hub pr merge [-h] [--commit-message COMMIT_MESSAGE] PR_NUMBER

positional arguments:
  PR_NUMBER

optional arguments:
  -h, --help            show this help message and exit
  --commit-message COMMIT_MESSAGE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment