{"id":16253885,"url":"https://github.com/felixge/cl","last_synced_at":"2025-03-19T21:30:23.960Z","repository":{"id":49297045,"uuid":"378353560","full_name":"felixge/cl","owner":"felixge","description":"Quickly clone git repositories into a nested folders like GOPATH.","archived":false,"fork":false,"pushed_at":"2021-06-19T12:03:49.000Z","size":12,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T08:33:45.112Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felixge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-19T07:39:10.000Z","updated_at":"2024-05-18T18:41:03.000Z","dependencies_parsed_at":"2022-08-28T09:11:40.210Z","dependency_job_id":null,"html_url":"https://github.com/felixge/cl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixge%2Fcl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixge%2Fcl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixge%2Fcl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixge%2Fcl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixge","download_url":"https://codeload.github.com/felixge/cl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244507819,"owners_count":20463687,"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-10T15:19:10.782Z","updated_at":"2025-03-19T21:30:23.613Z","avatar_url":"https://github.com/felixge.png","language":"Go","readme":"# cl\n\n`cl` clones git repositories into nested folders like [GOPATH](https://golang.org/doc/gopath_code#Workspaces) and outputs the path of the cloned directory. Example:\n\n\n```\ncl https://github.com/foo/bar\n```\n\nIs roughly equivalent to:\n\n```\ngit clone https://github.com/foo/bar ~/src/github.com/foo/bar\ncd ~/src/github.com/foo/bar\n```\n\nYou can install `cl` as a [binary release](https://github.com/felixge/cl/releases) or using Go:\n\n```\ngo install github.com/felixge/cl@latest\n```\n\nIn order for the example above to work, you'll need to configure a bash function in your profile that specifies your preferred installation `-dir` and changes into the cloned directory on success:\n\n```\ncl() {\n  cloned=$(command cl -dir \"$GOPATH/src\" \"$1\")\n  cd \"$cloned\"\n}\n```\n\nAfter that any of the following commands can be used to clone a repo and change into its directory:\n\n```\ncl https://github.com/foo/bar.git\ncl https://github.com/foo/bar\ncl git@github.com:foo/bar.git\n```\n\nWithout the bash function, you would have to use a slightly more verbose command:\n\n```\ncd $(cl -dir ~/src https://github.com/foo/bar)\n```\n\n# License\n\ncl is licensed under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixge%2Fcl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixge%2Fcl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixge%2Fcl/lists"}