{"id":15584817,"url":"https://github.com/sunny/git-deploy","last_synced_at":"2026-03-01T11:04:03.102Z","repository":{"id":6496047,"uuid":"7736487","full_name":"sunny/git-deploy","owner":"sunny","description":"git alias to do remote git pulls.","archived":false,"fork":false,"pushed_at":"2020-06-14T09:45:19.000Z","size":16,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-24T04:16:53.021Z","etag":null,"topics":[],"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/sunny.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}},"created_at":"2013-01-21T17:08:19.000Z","updated_at":"2019-11-07T17:48:50.000Z","dependencies_parsed_at":"2022-08-26T03:42:48.049Z","dependency_job_id":null,"html_url":"https://github.com/sunny/git-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sunny/git-deploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fgit-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fgit-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fgit-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fgit-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunny","download_url":"https://codeload.github.com/sunny/git-deploy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Fgit-deploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29967932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T10:55:55.490Z","status":"ssl_error","status_checked_at":"2026-03-01T10:55:55.175Z","response_time":124,"last_error":"SSL_read: 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":[],"created_at":"2024-10-02T21:00:22.841Z","updated_at":"2026-03-01T11:04:03.086Z","avatar_url":"https://github.com/sunny.png","language":"Shell","readme":"$ git deploy\n============\n\nGit push then pull over ssh.\n\nHow\n---\n\nSupposing you have a git remote over SSH\n(for example : `user@example.org:thatproject/origin.git`)\nwith these directories:\n\n    thatproject/origin.git\n    thatproject/dev/.git\n    thatproject/prod/.git\n\nThis script will let you push and pull it in `dev/` and `prod/`, just by calling locally:\n\n```sh\n$ git deploy dev\n$ git deploy prod\n```\n\n\nInstall\n-------\n\nMake sure the `~/bin` folder exists and is in your `$PATH`, then:\n\n```sh\n$ curl https://raw.githubusercontent.com/sunny/git-deploy/master/git-deploy.sh \u003e ~/bin/git-deploy\n$ chmod +x ~/bin/git-deploy\n$ git config --global alias.deploy '!git-deploy'\n```\n\nUpdate\n------\n\n```sh\n$ curl https://raw.githubusercontent.com/sunny/git-deploy/master/git-deploy.sh \u003e ~/bin/git-deploy\n```\n\nBranches\n--------\n\nIf the local branch is different from the remote one, it will push it and switch to it\nin your remote directory.\n\n\nHooks\n-----\n\nOther scripts can be launched before and after a deploy by using hooks.\nThese files will be called in this order during a deploy if they are executable:\n\n| Command | Local | Remote |\n| --------- | ------ | ------- |\n| `__scripts/deploy_before dev` | X | |\n| `.git/hooks/post-merge` | | X |\n| `__scripts/compile dev` | | X |\n| `__scripts/deploy dev` | X | |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny%2Fgit-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunny%2Fgit-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny%2Fgit-deploy/lists"}