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")

python-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.

Files for git-remote, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size git-remote-2019.4.13.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page