{"id":16473274,"url":"https://github.com/amalfra/gits","last_synced_at":"2026-04-13T17:06:52.435Z","repository":{"id":74089469,"uuid":"77116370","full_name":"amalfra/gits","owner":"amalfra","description":"Tiny bash script for the lazy ones to sync repos with upstream :arrow_up: :arrow_down:","archived":false,"fork":false,"pushed_at":"2021-06-18T19:36:51.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T02:24:57.283Z","etag":null,"topics":["git","shell-script","sync"],"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/amalfra.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-22T05:54:00.000Z","updated_at":"2024-07-22T17:16:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"89fd0087-b68b-4c3a-a9e4-610880eb26d3","html_url":"https://github.com/amalfra/gits","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amalfra%2Fgits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amalfra%2Fgits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amalfra%2Fgits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amalfra%2Fgits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amalfra","download_url":"https://codeload.github.com/amalfra/gits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241111846,"owners_count":19911574,"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","shell-script","sync"],"created_at":"2024-10-11T12:26:04.324Z","updated_at":"2026-04-13T17:06:52.404Z","avatar_url":"https://github.com/amalfra.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"gits\n========\n[![GitHub release](https://img.shields.io/github/release/amalfra/gits.svg)](https://github.com/amalfra/gits/releases)\n\n*gits* is a simple bash script to sync specified git repo(s). It will pull and rebase code from your remote named `main` and push it to `origin`.\n\n## Installation\nClone the repo or download the file named `gits` from this repo!\n\n## Usage\nJust configure the env variable `GITS_GIT_FOLDERS` with the absolute paths to your git repo folders. For eg in `.bashrc` add below line\n```sh\nexport GITS_GIT_FOLDERS=\"/home/amal/myProject\"\n```\nMutiple folders can be given by comma seperated values\n```sh\nexport GITS_GIT_FOLDERS=\"/home/amal/myProject1, /home/amal/myProject2\"\n```\n*gits* will check for a git repo in all provided folders and if it does not exist, then will do sync in all it's sub folders. \n\nYou can also sync specific folder by using commandline parameter. For eg\n```sh\ngits /home/amal/myProject\n```\nwill do sync just on ```/home/amal/myProject``` folder.\n\n## Development\nQuestions, problems or suggestions? Please post them on the [issue tracker](https://github.com/amalfra/gits/issues).\n\nYou can contribute changes by forking the project and submitting a pull request. Feel free to contribute :heart_eyes:\n\nUNDER MIT LICENSE\n=================\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Amal Francis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famalfra%2Fgits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famalfra%2Fgits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famalfra%2Fgits/lists"}