{"id":29866507,"url":"https://github.com/yonis-savary/git-watch","last_synced_at":"2026-05-15T21:34:07.332Z","repository":{"id":305172942,"uuid":"1022085493","full_name":"yonis-savary/git-watch","owner":"yonis-savary","description":"Bash script to automatically pull changes and (re)build your app","archived":false,"fork":false,"pushed_at":"2025-07-22T07:41:19.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-30T13:08:41.240Z","etag":null,"topics":["automation","bash","cicd"],"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/yonis-savary.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,"zenodo":null}},"created_at":"2025-07-18T12:31:48.000Z","updated_at":"2025-07-22T07:41:23.000Z","dependencies_parsed_at":"2025-07-18T19:22:27.797Z","dependency_job_id":null,"html_url":"https://github.com/yonis-savary/git-watch","commit_stats":null,"previous_names":["yonis-savary/git-watch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yonis-savary/git-watch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonis-savary%2Fgit-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonis-savary%2Fgit-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonis-savary%2Fgit-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonis-savary%2Fgit-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonis-savary","download_url":"https://codeload.github.com/yonis-savary/git-watch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonis-savary%2Fgit-watch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","bash","cicd"],"created_at":"2025-07-30T12:39:27.724Z","updated_at":"2026-05-15T21:34:07.317Z","avatar_url":"https://github.com/yonis-savary.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-watch\n\nBash script to automatically pull changes and (re)build your app every X seconds\n\n## Requirements\n\n- git\n- bash (present on most popular linux distros)\n\n# Installation\n\n```sh\nmkdir /opt\ncd /opt\ngit clone git@github.com:yonis-savary/git-watch.git # OR https://github.com/yonis-savary/git-watch.git\n\nsudo ln -s /opt/git-watch/git-watch /usr/local/bin/git-watch\n# Or add /opt/git-watch in your $PATH\n```\n\n## How does it work\n\nThe script initialy start a \"runner\" version of itself, which contains the actual code\n\nWhen the runner works:\n- Fetch for changes on `--branch`\n- If any :\n    - Execute `--command`\n- Sleep `--sleep` seconds (10 minutes by default)\n\nHere is two simple examples\n```sh\ngit-watch --output ./watch.logs --command \"npm ci\"\n\ngit-watch --main feature-branch --sleep 600 --command \"npm ci\"\n```\n\nAdditionnally, you can specify:\n- a log file with `--output`,\n- a repository path with `--path` (current directory by default),\n- runner process name with `--name` (It is advised that you let git-watch decide itself)\n\nYou can also run the process directly with `git-watch run \u003coptions...\u003e`\n\nYou can list your runner instances with\n```sh\ngit-watch ps\n```\n\nIf you want to stop your runner instance, simply use\n```sh\ngit-watch stop \u003crunner_name\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonis-savary%2Fgit-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonis-savary%2Fgit-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonis-savary%2Fgit-watch/lists"}