{"id":16314973,"url":"https://github.com/cebe/git-simple-subsplit","last_synced_at":"2025-03-22T20:36:11.564Z","repository":{"id":10862798,"uuid":"13147685","full_name":"cebe/git-simple-subsplit","owner":"cebe","description":"A git subtree/subsplit script for quickly creating one-way subsplit of repositories. (use for composer packages)","archived":false,"fork":false,"pushed_at":"2013-10-05T17:28:27.000Z","size":131,"stargazers_count":19,"open_issues_count":2,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-11T21:55:50.972Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cebe.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":"2013-09-27T10:29:36.000Z","updated_at":"2024-01-15T10:28:41.000Z","dependencies_parsed_at":"2022-08-29T22:11:41.630Z","dependency_job_id":null,"html_url":"https://github.com/cebe/git-simple-subsplit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fgit-simple-subsplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fgit-simple-subsplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fgit-simple-subsplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebe%2Fgit-simple-subsplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebe","download_url":"https://codeload.github.com/cebe/git-simple-subsplit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221839454,"owners_count":16889620,"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-10T21:55:44.801Z","updated_at":"2024-10-28T14:20:19.667Z","avatar_url":"https://github.com/cebe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"git-simple-subsplit\n===================\n\nA git subtree/subsplit script for quickly creating one-way subsplit of repositories. (use for composer packages)\n\nCan sync branches and tags.\n\n##Usage\n\nGeneral usage:\n\n```\ngit-simple-subsplit.sh subpath git@remotehost:repo.git [--tags \"tag1 tag2 ...\"] [--branches \"branch1 branch2 ...\"]\n```\n\nsync all tags and branches (always uses `origin` remote for checking branches and tags):\n\n```\ncd repo\ngit fetch origin\ngit-simple-subsplit.sh subpath git@github.com:user/subrepo.git\n```\n\nsync only `master` and `other` branch and all tags:\n\n```\ncd repo\ngit fetch origin\ngit-simple-subsplit.sh subpath git@github.com:user/subrepo.git --branches \"master other\"\n```\n\n##Workflow for creating and syncing sub-repos\n\n### Create\n\n```sh\ngit clone https://github.com/user/masterrepo masterrepo\ncd masterrepo\ngit-simple-subsplit.sh path1 git@github.com:user/subrepo1.git\ngit-simple-subsplit.sh path2 git@github.com:user/subrepo2.git\n...\n```\n\n### Update\n\nSame as \"Create\" but it will use existing repo and cached data so only add new commits which is much faster.\n\n```sh\ncd masterrepo\ngit fetch origin\ngit-simple-subsplit.sh path1 git@github.com:user/subrepo1.git\ngit-simple-subsplit.sh path2 git@github.com:user/subrepo2.git\n...\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Fgit-simple-subsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebe%2Fgit-simple-subsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebe%2Fgit-simple-subsplit/lists"}