{"id":20744685,"url":"https://github.com/rioam2/git-upstream-template","last_synced_at":"2025-04-24T05:48:25.459Z","repository":{"id":47091319,"uuid":"211384868","full_name":"rioam2/git-upstream-template","owner":"rioam2","description":"Synchronize git templates generated by GitHub as if they were forks","archived":false,"fork":false,"pushed_at":"2021-09-13T23:48:31.000Z","size":75,"stargazers_count":12,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T18:45:06.720Z","etag":null,"topics":["cherry-pick","fork","merge","npm","repository-sync","synchronization","templates","unrelated-histories","upstream-template"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/rioam2.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":"2019-09-27T19:05:22.000Z","updated_at":"2024-05-23T18:33:07.000Z","dependencies_parsed_at":"2022-08-28T08:22:13.962Z","dependency_job_id":null,"html_url":"https://github.com/rioam2/git-upstream-template","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/rioam2%2Fgit-upstream-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioam2%2Fgit-upstream-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioam2%2Fgit-upstream-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rioam2%2Fgit-upstream-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rioam2","download_url":"https://codeload.github.com/rioam2/git-upstream-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468273,"owners_count":21435452,"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":["cherry-pick","fork","merge","npm","repository-sync","synchronization","templates","unrelated-histories","upstream-template"],"created_at":"2024-11-17T07:16:50.445Z","updated_at":"2025-04-24T05:48:25.444Z","avatar_url":"https://github.com/rioam2.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-upstream-template\n\n[![Build Status](https://travis-ci.com/rioam2/git-upstream-template.svg?branch=master)](https://travis-ci.com/rioam2/git-upstream-template)\n[![Coverage Status](https://coveralls.io/repos/github/rioam2/git-upstream-template/badge.svg?branch=master)](https://coveralls.io/github/rioam2/git-upstream-template?branch=master)\n[![TypeScript](https://badges.frapsoft.com/typescript/version/typescript-next.svg?v=101)](https://github.com/ellerbrock/typescript-badges/)\n[![NPM Version](https://img.shields.io/npm/v/git-upstream-template.svg)](https://github.com/rioam2/git-upstream-template)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://img.shields.io/badge/license-MIT-blue.svg)\n\nSynchronize git templates generated by GitHub as if they were forks.\n\n```bash\nnpx git-upstream-template \u003csource-template-repo-url\u003e \u003coptional-branch-name\u003e\n```\n\non an child instance of a Github template repository will open up an interactive CLI where you can select from a list of updated commits that have been made after child instance creation. These will then be applied to the child template instance keeping changes and patches current.\n\nAll working directory changes will be stashed before any operations are made using git and popped once successfully completed. This is for your own peace-of-mind and protection. If any operation fails, simply use `git stash pop` to retrieve your cwd again.\n\nSpecial treatment will be given to source commits with messages formatted: `Bump \u003cpackage\u003e from \u003csrc_version\u003e to \u003cdst_version\u003e`. These commits will call `yarn` to update `\u003cpackage\u003e` to version `\u003cdst_version\u003e`.\n\n### Optional Branch Name\n\nIn order to support newly created repositories on GitHub you can pass an `\u003coptional-branch-name\u003e` in your CLI. All newly created GitHub repositories will have a default branch of `main` instead of `master`. For further information you can read [here](https://sfconservancy.org/news/2020/jun/23/gitbranchname/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frioam2%2Fgit-upstream-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frioam2%2Fgit-upstream-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frioam2%2Fgit-upstream-template/lists"}