{"id":16573888,"url":"https://github.com/julienpeloton/git-r","last_synced_at":"2026-05-09T08:02:16.604Z","repository":{"id":57434781,"uuid":"113984035","full_name":"JulienPeloton/git-r","owner":"JulienPeloton","description":" Manage git repo from a distant location (within the same machine)","archived":false,"fork":false,"pushed_at":"2017-12-14T09:48:26.000Z","size":236,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-21T13:26:24.321Z","etag":null,"topics":["git","remote"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JulienPeloton.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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-12-12T11:49:25.000Z","updated_at":"2017-12-12T16:24:17.000Z","dependencies_parsed_at":"2022-09-04T15:23:49.611Z","dependency_job_id":null,"html_url":"https://github.com/JulienPeloton/git-r","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/JulienPeloton/git-r","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Fgit-r","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Fgit-r/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Fgit-r/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Fgit-r/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulienPeloton","download_url":"https://codeload.github.com/JulienPeloton/git-r/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienPeloton%2Fgit-r/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32811662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","remote"],"created_at":"2024-10-11T21:43:20.037Z","updated_at":"2026-05-09T08:02:16.569Z","avatar_url":"https://github.com/JulienPeloton.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=============================\ngit-r\n=============================\n\n.. image:: https://travis-ci.org/JulienPeloton/git-r.svg?branch=master\n    :target: https://travis-ci.org/JulienPeloton/git-r\n\n.. contents:: **Table of Contents**\n\nWhat is git-r?\n===============\ngit-r is a python module to manage git repositories from a distant folder.\nWe provide an executable ``git-r`` which is a wrapper around the traditional ``git`` command\nand can be called from any location to make change to a particular git repository on the machine.\n\nRequirements\n===============\n\nNo special dependencies. Work for both python2.7 and python 3.X.\n\nInstallation\n===============\n\nThe best is to use pip\n\n::\n\n    pip install git-r\n\nMake sure that the executable is in your path.\n\nQuick examples\n===============\n\nThe general usage is very simple\n\n::\n\n    git-r \u003ccommand\u003e [\u003coptions\u003e] \u003crepo_name\u003e\n\nNote that ``command`` can be any git commands.\n\nSay now I have a repo at ``/some/path/repo``. First, you need to create the\n.git-rrc file in your ``$HOME`` and register ``repo`` (see the example provided).\ngit-r allows you to do that from the command line:\n\n::\n\n    julien:workspace$ git-r add_repo /some/path/repo\n    .git-rrc does not exist. Now created at $HOME/.git-rrc.\n\nThis message will appear only once when the file is created.\nThen you can as many repo as you want. You can also overwrite the location of\nan old repo:\n\n::\n\n    julien:workspace$ git-r add_repo /some/new/path/repo\n    +---------------------------+\n    Repo already in the .git-rrc file!\n    Path used is /some/path/repo\n    Do you want to overwrite it? [Y/n]\n\n\n**Example 1: Pull**\n\nImagine I am working from a distant folder ``/some/other/path/workspace`` (but still the same machine!)\nand I want to pull the latest change from ``repo``:\n\n::\n\n    julien:workspace$ git-r pull repo\n    Repo: /some/path/repo\n    \u003ccan ask password\u003e\n    Already up-to-date.\n    julien:workspace$\n\n**Example 2: Changing branch**\n\nImagine I am working from a distant folder ``/some/other/path/workspace`` (but still the same machine!)\nand I want to switch from the ``master`` branch to ``mybranch`` branch in ``repo``:\n\n::\n\n    julien:workspace$ git-r checkout mybranch repo\n    Repo: /some/path/repo\n    Switched to branch 'mybranch'\n    Your branch is up-to-date with 'origin/mybranch'.\n    julien:workspace$\n\n\nSupport\n===============\n\n.. raw:: html\n\n    \u003cimg src=\"https://github.com/JulienPeloton/git-r/blob/master/pics/erc.jpg\" height=\"200px\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienpeloton%2Fgit-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulienpeloton%2Fgit-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulienpeloton%2Fgit-r/lists"}