Skip to main content

git remote

Project description

Installation

$ [sudo] pip install git-remote

Functions

function __doc__
git_remote.add(name, url) git remote add name url
git_remote.names() return git remote names
git_remote.remotes() return a list of git remote tuples (name, url)
git_remote.remove(name) git remote rm name
git_remote.rename(old, new) git remote rename old new
git_remote.rm(name) git remote rm name
git_remote.run(args) run git remote with args and return output
git_remote.set_url(name, url) git remote set-url old new
git_remote.urls() return git remote urls

Examples

>>> import git_remote
>>> git_remote.add("github","git@github.com:owner/repo.git")
>>> git_remote.remotes()
[['github', 'git@github.com:owner/repo.git']]

>>> git_remote.names()
['github']

>>> git_remote.urls()
['git@github.com:owner/repo.git']

>>> git_remote.set_url("github","git@github.com:owner/repo2.git")
>>> git_remote.rm("github")

readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-remote-2019.3.22.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

git_remote-2019.3.22-py2.py3-none-any.whl (45.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page