Git Setup

In order for gitman to interact with Git, it must be configured to store your credentials for private repository access.

To test, trying cloning one of your private repositories:

$ git clone<owner>/<repo>.git

If you see:

Username for '':

then credential storage is not set up correctly.

Stored Credentials

To use the Keychain manager on OS X, run:

$ git config --global credential.helper osxkeychain

To use the Credential Manager on Windows run:

$ git config --global credential.helper wincred

If you're using two-factory authentication on GitHub, you'll need to provide a personal access token instead of your password.

SSH Keys

You can also set up SSH keys (for GitHub) and use a different URL:

$ git clone git://<owner>/<repo>.git

OAuth Tokens

Finally, the repository URL itself can contain an OAuth token (for GitHub):

$ git clone https://<token><owner>/<repo>.git

The token can also be written to .netrc during builds, see the guide for Travis CI.