{"id":20479049,"url":"https://github.com/4u6u57/gitmerge","last_synced_at":"2026-05-08T05:54:23.966Z","repository":{"id":90455110,"uuid":"61012561","full_name":"4U6U57/gitmerge","owner":"4U6U57","description":"Git merging utility, takes in git clone URLs and makes them subdirectories of a single git repo.","archived":false,"fork":false,"pushed_at":"2016-12-29T21:21:55.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T03:49:34.637Z","etag":null,"topics":["bash","git"],"latest_commit_sha":null,"homepage":"","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/4U6U57.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-13T06:30:46.000Z","updated_at":"2016-11-08T20:49:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"97120849-01d4-4130-b95a-100b5bca104c","html_url":"https://github.com/4U6U57/gitmerge","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/4U6U57%2Fgitmerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4U6U57%2Fgitmerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4U6U57%2Fgitmerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4U6U57%2Fgitmerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4U6U57","download_url":"https://codeload.github.com/4U6U57/gitmerge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242048572,"owners_count":20063404,"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":["bash","git"],"created_at":"2024-11-15T15:40:41.007Z","updated_at":"2026-05-08T05:54:18.944Z","avatar_url":"https://github.com/4U6U57.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitmerge.sh\n\n[![Join the chat at https://gitter.im/4U6U57/gitmerge](https://badges.gitter.im/4U6U57/gitmerge.svg)](https://gitter.im/4U6U57/gitmerge?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nGit repository merging utility\n\n## Installation\nThis script requires a Unix enviornment running Bash. This is available out of\nthe box on most Linux distros, BSD installations, and macOS. It can be\ninstalled as a subsystem for Windows by enabling it under Additional Features.\n\nTo install it, simply run\n```\ngit clone http://github.com/4U6U57/gitmerge ~/bin/\ncd ~/bin/gitmerge\nmake install\n```\n\nThis assumes that the `~/bin/` directory is in your `$PATH`.\n\n## Usage\nSimply run `gitmerge.sh` in the directory you would like to create the merged\nrepository. Use \".\" if you would like to use the current directory.\n\n## File Input\nFormat a file using the regular language below for automated merging, running the \nprogram with input redirect like so: `gitmerge.sh \u003c FILE`\n\n```\n$MERGE_NAME\n($DOWNLOAD_URL ($DIRECTORY_NAME)?)*\n\n($UPLOAD_URL)?\n(y)?\n```\n\nwhere\n- `$MERGE_NAME` is the directory name of the base repo (the one you would like to\n  merge others into)\n- `$DOWNLOAD_URL` is the git clone URL, either in SSH or HTML form, of each repo\n  you would like to merge into the base repo. Each URL should be on its own\n  line. Examples of repo URLs below:\n   * `git@github.com:4U6U57/gitmerge`\n   * `http://github.com/4U6U57/gitmerge`\n- `$DIRECTORY_NAME` is the optional name of the subdirectory in which the\n  merged repo will be moved to. If none is provided, the default will be used\n  (default for the `git clone` command)\n- `$UPLOAD_URL` is the optional git clone URL of where you would like to push\n  the final merged repo when it is completed. Note that there must be exactly\n  one blank line in between the last `$DOWNLOAD_URL` and the `$UPLOAD_URL`\n- `y` is the literal letter `y`, placed on the line after the `$UPLOAD_URL` if\n  you would like to delete the base repo directory after pushing it\n\nHere is an example file, merging in the repo *gitmerge* into the subdirector *merge*, \nand repo *vimrc* into the default subdirectory name (*vimrc*), and then uploading it \nto the repo *example.merge* while keeping the local contents.\n\n```\nexample\ngit@github.com:4U6U57/gitmerge merge\nhttp://bitbucket.org/4U6U57/vimrc\n\ngit@github.com:4U6U57/example.merge\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4u6u57%2Fgitmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4u6u57%2Fgitmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4u6u57%2Fgitmerge/lists"}