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")
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for git_remote-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458efc5cfb2c28f78585f207f618a5194a76a5f9cd3f278e17e4e9975bbfa2fa |
|
MD5 | 0a56ee55dc5d247f5d84a26a294855b1 |
|
BLAKE2b-256 | 41f96529a9c119fde1f35449a8a4d483cbd25b8d8713b91f6bf09ef4cc606261 |