Skip to content

Instantly share code, notes, and snippets.

@hjhart
Last active April 7, 2017 17:43
Show Gist options
  • Save hjhart/c1fb019a2ef3320f690e1076cabdb44e to your computer and use it in GitHub Desktop.
Save hjhart/c1fb019a2ef3320f690e1076cabdb44e to your computer and use it in GitHub Desktop.
bundle config github.com c0db1529df7dfe5168c4f7c28fa2e005f9984b32
BUNDLE_GITHUB__COM=c0db1529df7dfe5168c4f7c28fa2e005f9984b32 bundle install
The git source `git://github.com/hjhart/private_repo.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
curl --user 'hjhart' -d '{"scopes":["repo"],"note":"Blog Post Example 2"}' https://api.github.com/authorizations
{
"id": 93931604,
"url": "https://api.github.com/authorizations/12312",
"app": {
"name": "Blog Post Example",
"url": "https://developer.github.com/v3/oauth_authorizations/",
"client_id": "00000000000000000000"
},
"token": "c0db1529df7dfe5168c4f7c28fa2e005f9984b32",
"hashed_token": "REDACTED",
"token_last_eight": "f9984b32",
"note": "Blog Post Example",
"note_url": null,
"created_at": "2017-04-05T19:12:59Z",
"updated_at": "2017-04-05T19:12:59Z",
"scopes": [
"repo"
],
"fingerprint": null
}
# Change any of these versions
gem 'private_repo', git: '[email protected]:hjhart/private_repo.git', branch: :master
gem 'private_repo', github: 'hjhart/private_repo'
# Into this version
gem 'private_repo', git: "https://github.com/hjhart/private_repo"
git clone https://c0db1529df7dfe5168c4f7c28fa2e005f9984b32:[email protected]/hjhart/private_repo
---
BUNDLE_GITHUB__COM: "c0db1529df7dfe5168c4f7c28fa2e005f9984b32"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment