{"id":13825371,"url":"https://github.com/astj/ghq-migrator","last_synced_at":"2025-07-13T13:34:09.808Z","repository":{"id":72101856,"uuid":"47835600","full_name":"astj/ghq-migrator","owner":"astj","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-31T05:46:50.000Z","size":7,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T09:44:43.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-12-11T15:51:34.000Z","updated_at":"2025-03-30T00:42:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"920792a1-4fd6-4370-ab17-e5b56fd8a7b4","html_url":"https://github.com/astj/ghq-migrator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astj/ghq-migrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fghq-migrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fghq-migrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fghq-migrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fghq-migrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astj","download_url":"https://codeload.github.com/astj/ghq-migrator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fghq-migrator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265151389,"owners_count":23719120,"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-08-04T09:01:19.707Z","updated_at":"2025-07-13T13:34:09.785Z","avatar_url":"https://github.com/astj.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# ghq-migrator\n\nmove your local repository into [ghq](https://github.com/motemen/ghq)'s root directory with suitable URI-based path.\n\n## DEPENDENCIES\n\n- bash\n- sed (may not work with GNU's version. Only tested with the BSD version)\n- git\n\nAnd you need to set ghq's root directory configuration in 'git-config'.  If you already started using ghq, you need to do nothing about it.  Read ghq's README.\n\n## SYNOPSIS\n\n```\n$ ghq-migrator.bash ./(YOUR_REPOSITORY)/\n```\n\n## CONFIGURATION\n\nYou can customize behavior of ghq-migrator by following environmental variables.\n\n###  `GHQ_MIGRATOR_ACTUALLY_RUN`\n\nUnless this variable set to `1`, ghq-migrator doesn't move repository's directory (dry-run).\nIt's recommended to run ghq-migrator without this option at first, check output, and run with `GHQ_MIGRATOR_ACTUALLY_RUN=1` to move directory actually.\n\n### `GHQ_MIGRATOR_PREFER_ORIGIN`\n\nBy default, ghq-migrator doesn't move a repository with more than two git-remote url.\nIf `GHQ_MIGRATOR_PREFER_ORIGIN=1` is set, ghq-migrator moves the repository according to url of `origin` even it has another remote.\n\n*Note* : Even if `GHQ_MIGRATOR_PREFER_ORIGIN=1` is specified, ghq-migrator cannot move repositories which its origin has more than 2 urls, because ghq-migrator cannot decide which url to use.\n\n### `GHQ_MIGRATOR_LINK`\n\nIf `GHQ_MIGRATOR_LINK=1` is set, a symbolic link to the destination directory will be created at the place where the repository was moved from.\n\n### AUTHOR\n\nastj (asato.wakisaka@gmail.com)\n\n### LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastj%2Fghq-migrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastj%2Fghq-migrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastj%2Fghq-migrator/lists"}