git remote
Project description
Install
$ [sudo] pip install git-remote
Functions
function | description |
---|---|
git_remote.add(name, url) |
git remote add name url |
git_remote.names() |
return git remote names |
git_remote.remotes() |
return 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-md - README.md generator
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-2018.11.19.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for git_remote-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb43b49b0ed15aac362b9a4c7ae2dd393a8a95a5ccb00d64ba941a966e8458d |
|
MD5 | eaa70a6746838f104b02a61d96b5526e |
|
BLAKE2b-256 | fac8975e7c972bc251a5c0dd39604ad02a2d08365329bb0728afc0b393003c1a |