{"id":17255381,"url":"https://github.com/krisnova/klone","last_synced_at":"2026-03-18T01:35:45.838Z","repository":{"id":57495950,"uuid":"90442599","full_name":"krisnova/klone","owner":"krisnova","description":"Taking you from a git repository to development in seconds","archived":false,"fork":false,"pushed_at":"2017-06-04T07:36:27.000Z","size":11484,"stargazers_count":42,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T06:08:13.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krisnova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-06T06:34:30.000Z","updated_at":"2025-03-01T11:36:05.000Z","dependencies_parsed_at":"2022-08-28T17:41:31.067Z","dependency_job_id":null,"html_url":"https://github.com/krisnova/klone","commit_stats":null,"previous_names":["kris-nova/klone"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Fklone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Fklone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Fklone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisnova%2Fklone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisnova","download_url":"https://codeload.github.com/krisnova/klone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830397,"owners_count":21168272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T07:11:30.292Z","updated_at":"2026-03-18T01:35:40.808Z","avatar_url":"https://github.com/krisnova.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/kris-nova/klone)](https://goreportcard.com/report/github.com/kris-nova/klone)\n\n\n`klone` is a command line tool that makes it easy to start working with a git repository.\n\n`klone` can can check out an arbitrary github repository and run it in any Docker container you like.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"doc/img/docker.png\"\u003e \u003c/image\u003e\n\u003c/p\u003e\n\n\n# Installing\n\n```bash\ngo get -u github.com/kris-nova/klone\n```\n\n## Using `klone`\n\n### In a Docker container\n\nA user can easily go from an arbitrary github repository, to a docker container of their choice.\n\n```bash\nklone docker -c golang:1.8.3\n```\n\nWill use `docker` to checkout the `github.com/docker/docker` repository on a `golang:1.8.3` Docker image.\n\n`klone` will run itself inside the container and use the exact same logic it would use if running locally (which is described below).\n\nA full walkthrough of using `klone` with [golang/dep](https://github.com/golang/dep) can be found [here](doc/dep-example.md).\n\n### Local\n\n```bash\nklone kubernetes\n```\n\n`klone` has built in logic to form possible repository information from a simple string.\n\nFor example `klone kubernetes` will attempt `github.com/kubernetes/kubernetes` and find the repository.\n\n`klone` will also detect the programming language the repository is written in, and check the code out accordingly.\n\nAfter a `klone` you should have the following `git remote -v` configuration\n\n| Remote        | URL                                         |\n| ------------- | ------------------------------------------- |\n| origin        | git@github.com:`$you`/`$repo`               |\n| upstream      | git@github.com:`$them`/`$repo`              |\n\n\n# GitHub Credentials\n\nKlone will prompt you the first time you use the program for needed credentials.\nOn a first run klone will cache local configuration to `~/.klone/auth` after it creates a token via the API.\nKlone will *never* store your passwords in plaintext.\n\n# Testing\n\nExport `TEST_KLONE_GITHUBUSER` and `TEST_KLONE_GITHUBPASS` with a GitHub user/pass for a test account.\nI use handy dandy @knovabot for my testing.\n\nRun the test suite\n\n```\nmake test\n```\n\n# Environmental variables\n\n| Variable                              | Behaviour                                              |\n| ------------------------------------- | ------------------------------------------------------ |\n|KLONE_WORKSPACE                        | If set, klone will klone here for simple klones only   |\n|KLONE_GITHUBTOKEN                      | GitHub acccess token to use with GitHub.com            |\n|KLONE_GITHUBUSER                       | GitHub user name to authenticate with                  |\n|KLONE_GITHUBPASS                       | GitHub password to authenticate with                   |\n|TEST_KLONE_GITHUBTOKEN                 | (Testing) GitHub acccess token to use with GitHub.com  |\n|TEST_KLONE_GITHUBUSER                  | (Testing) GitHub user name to authenticate with        |\n|TEST_KLONE_GITHUBPASS                  | (Testing) GitHub password to authenticate with         |\n\n# Passing environmental variables to containers\n\nBy default klone will automatically pass ALL environmental variables that begin with the prefix \"KLONE_CONTAINER_\" and will pass the variable WITHOUT the prefix.\n\nFor example setting `KLONE_CONTAINER_GOPATH=/my/gopath` will pass `GOPATH=/my/gopath` to the container.\n\nEnvironmental variables cannot be passed in as command line flags.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisnova%2Fklone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisnova%2Fklone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisnova%2Fklone/lists"}