Need help with gethub?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

pearkes
209 Stars 229 Forks MIT License 101 Commits 13 Opened issues

Description

A utility for cloning and fetching your remote git repositories from GitHub.

Services available

!
?

Need anything else?

Contributors list

# 9,238
Go
Ruby
droplet
Amazon ...
73 commits
# 170,910
Ruby
JavaScr...
oauth2-...
oauth2
7 commits
# 95,780
Go
Terrafo...
terrafo...
Clojure
4 commits
# 134,064
Go
JavaScr...
Rails
Gin
2 commits
# 141,520
Ruby
html-to...
wkhtmlt...
JavaScr...
2 commits
# 124,698
Dart
JavaScr...
feed-re...
neovim-...
2 commits
# 390,577
Go
JavaScr...
1 commit

gethub

Overview

Build Status

gethub
helps you keep all of your git repositories that have GitHub remotes up to date.

Installation

You can download a binary,

deb
or
exe
, depending on your platform.

To determine your platform:

uname -sm

On Darwin, you can copy the binary to your bin:

cp ~/path/to/gethub /usr/local/bin/

Or, if you have Go installed:

go install github.com/pearkes/gethub

Getting Started

$ gethub authorize

This asks you where you want to clone your repositories as well as creating an OAuth token for future GitHub requests.

The next time you run a

gethub
, all of your new repositories will be cloned and your existing repositories will be fetched.

It's useful if you have a lot of repos and may not have an internet connection.

Never leave home without running

gethub
.

Directory Structure

It's opinionated about how you organize your repositories.

├── pearkes
│   ├── gethub
│   ├── tugboat
│   └── jack.ly
├── mitchellh
│   └── vagrant
├── amadeus
│   └── html7
├── someorg
│   └── bigproject
└── someotherorg
    └── biggerproject

Basically, your repositories will be name-spaced according to who the owner is on GitHub.

Behind the Curtain

$ gethub
  1. Checks to see if the necessary requirements for
    gethub
    exist, like it's
    ~/.gethubconfig
    file.
  2. Makes sure the path to your repositories looks ok.
  3. Clones any repositories that are missing.
  4. Runs
    git fetch
    in repositories that exist.

Configuration

Configuration is stored in a

.gethubconfig
file in your home directory. (
~/.gethubconfig
)

Ignored Repositories

Sometimes you don't want to retrieve that gigantic project that someone committed

.mov
files to.
[ignores]
repo: icloud, facebook, pearkes/bootstrap
owner: adobe

Contributing

Check out the contributing guide.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.