{"id":37093867,"url":"https://github.com/ottogiron/gitremote","last_synced_at":"2026-01-14T11:34:05.570Z","repository":{"id":57554657,"uuid":"87239627","full_name":"ottogiron/gitremote","owner":"ottogiron","description":"Execute git commands in a remote server","archived":false,"fork":false,"pushed_at":"2017-04-11T16:29:46.000Z","size":5454,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-15T08:04:46.157Z","etag":null,"topics":["git","golang","grpc","remote"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ottogiron.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":"2017-04-04T22:06:23.000Z","updated_at":"2017-04-07T15:08:01.000Z","dependencies_parsed_at":"2022-09-26T18:51:25.010Z","dependency_job_id":null,"html_url":"https://github.com/ottogiron/gitremote","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ottogiron/gitremote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottogiron%2Fgitremote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottogiron%2Fgitremote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottogiron%2Fgitremote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottogiron%2Fgitremote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottogiron","download_url":"https://codeload.github.com/ottogiron/gitremote/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottogiron%2Fgitremote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["git","golang","grpc","remote"],"created_at":"2026-01-14T11:34:04.688Z","updated_at":"2026-01-14T11:34:05.560Z","avatar_url":"https://github.com/ottogiron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git remote\n\nExecutes  git operations in a remote server. It requires git installed in the remote server.\n\n[![Build Status](https://travis-ci.org/ottogiron/gitremote.svg?branch=master)](https://travis-ci.org/ottogiron/gitremote)\n[![GoDoc](https://godoc.org/github.com/ottogiron/gitremote?status.svg)](https://godoc.org/github.com/ottogiron/gitremote)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ottogiron/gitremote)](https://goreportcard.com/report/github.com/ottogiron/gitremote)\n\n## Installation\n\nFind binaries for linux and MacOS in the [releases page](https://github.com/ottogiron/gitremote/releases)\n\n## Getting Started\n\n\n### Run the server in the remote host\n\n***Configuration (default location $HOME/.gitremote.yaml):***\n\n```yaml\n---\nport: 2183\nallowed-directories:\n    - /path/in/server/to/allowed/git/repo\n\nallowed-commands:\n    - git status\n    - git log\n    - git pull\n```\n\n```bash\ngitr serve\n```\n\n### Run git comands in a client machine\n\n\n```bash\ngitr exec --command='git status' --working-dir=\"/path/to/git/repo/in/remote/server\" --host-address=\"localhost:2183\"\ngitr exec --command='git add .' --working-dir=\"/path/to/git/repo/in/remote/server\" --host-address=\"localhost:2183\"\ngitr exec --command='git commit -m \"Add latest changes remotely\"' --working-dir=\"/path/to/git/repo/in/remote/server\" --host-address=\"localhost:2183\"\ngitr exec --command='git push' --working-dir=\"/path/to/git/repo/in/remote/server\" --host-address=\"localhost:2183\"\n```\n\n### Commands Usage\n\n## Serve\n\n```bash\ngit serve [flags]\n\nStarts the git remote server\n\nExample:.\ngitr serve --port=2183\n\nUsage:\n  gitremote serve [flags]\n\nFlags:\n  -a, --allowed-commands stringSlice      The list of allowed git commands\n  -d, --allowed-directories stringSlice   The list of allowed git executable directories\n  -c, --cert-file string                  The TLS cert file (default \"server.pem\")\n  -k, --key-file string                   The TLS key file (default \"server.key\")\n  -p, --port int                          Port for the rpc service (default 2183)\n  -t, --tls                               Connection uses TLS if true, else plain TCP\n\nGlobal Flags:\n      --config string   config file (default is $HOME/.gitremote.yaml)\n```\n\n## Exec\n\n```bash\ngitr exec [flags]\n\nExecutes a git command in a  remote server:\n\nExample:.\ngitr exec --command=\"git status\" --working-dir=/home/otto/myproject --host-address=myhost:2183\n\nThe above executes translates to \"git status\" command running in the /home/otto/myproject directory\n\nUsage:\n  gitremote exec [flags]\n\nFlags:\n  -c, --command string        git command to be executed example: git status\n  -a, --host-address string   git remote server address (default \"localhost:2183\")\n  -w, --working-dir string    Working directory of the git command to run (default \".\")\n\nGlobal Flags:\n      --config string   config file (default is $HOME/.gitremote.yaml)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottogiron%2Fgitremote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottogiron%2Fgitremote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottogiron%2Fgitremote/lists"}