{"id":25420334,"url":"https://github.com/franciscoknebel/subtree-scripts","last_synced_at":"2026-05-18T09:36:56.636Z","repository":{"id":98889929,"uuid":"94666979","full_name":"FranciscoKnebel/subtree-scripts","owner":"FranciscoKnebel","description":"Scripts for simplifying adding, removing and updating repository subtrees.","archived":false,"fork":false,"pushed_at":"2018-08-28T14:34:36.000Z","size":79,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-16T19:44:59.338Z","etag":null,"topics":["git","scripts","subtree","subtree-scripts"],"latest_commit_sha":null,"homepage":"","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/FranciscoKnebel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-18T05:22:45.000Z","updated_at":"2024-01-13T23:56:53.000Z","dependencies_parsed_at":"2023-03-05T01:30:29.536Z","dependency_job_id":null,"html_url":"https://github.com/FranciscoKnebel/subtree-scripts","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/FranciscoKnebel%2Fsubtree-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fsubtree-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fsubtree-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FranciscoKnebel%2Fsubtree-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FranciscoKnebel","download_url":"https://codeload.github.com/FranciscoKnebel/subtree-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969277,"owners_count":21992265,"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":["git","scripts","subtree","subtree-scripts"],"created_at":"2025-02-16T19:37:52.039Z","updated_at":"2026-05-18T09:36:51.617Z","avatar_url":"https://github.com/FranciscoKnebel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# subtree-scripts\nScripts to add, remove and update subtrees inside a repository.\n\n![logo.png](logo.png)\n\n##### Created using git subtree\nhttps://developer.atlassian.com/blog/2015/05/the-power-of-git-subtree/\n\n## Getting Started\nClone the repository to your local machine and update your `.gitconfig` file with the configuration provided on the next step.\n\n### Prerequisites\n- Git.\n\n### Installing\nAfter you clone the repository, copy the full path to the `scripts` directory.\n\n###### $HOME/.gitconfig\n\nAdd this configuration to your .gitconfig file.\n`path/to/scripts` should be set accordingly.\n\n```\n[alias]\n# \"subtree add\"\n  sba = \"!f() { ./path/to/scripts/add $1 $2; }; f\"\n# \"subtree remove\"\n  sbr = \"!f() { ./path/to/scripts/remove $1; }; f\"\n# \"subtree update\"\n  sbu = \"!f() { ./path/to/scripts/update $1 $2; }; f\"\n# \"subtree update all\"\n  sbua = \"!f() { ./path/to/scripts/updateAll; }; f\"\n```\n\nAfter you configure `.gitconfig`, you can use the scripts as defined on the usage section.\n\n### Usage\n\n##### ADD repository folder\n```\ngit sba \u003crepository uri\u003e \u003cdestination folder\u003e\n```\n\n##### REMOVE repository folder\n```\ngit sbr \u003cdestination folder\u003e\n```\n\n##### UPDATE repository folder\n```\ngit sbu \u003crepository uri\u003e \u003cdestination folder\u003e\n```\n\n##### UPDATE ALL repository folder\n\n```\ngit sbua\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/franciscoknebel/subtree-scripts/tags).\n\n## Authors\n\n* **Francisco Knebel** - *Initial work* - [Francisco Knebel](https://github.com/FranciscoKnebel)\n\nSee also the list of [contributors](https://github.com/FranciscoKnebel/subtree-scripts/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranciscoknebel%2Fsubtree-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranciscoknebel%2Fsubtree-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranciscoknebel%2Fsubtree-scripts/lists"}