A simple wrapper around the Git CLI.
Project description
Note: This package is in the dangerous land of
0.x.y
versions and may be subject to breaking changes with minor version increments.
nr.utils.git
A simple wrapper around the Git CLI.
Example
from nr.utils.git import Git
repo = Git().clone('/Volumes/git/linux', 'https://github.com/torvalds/linux')
assert repo.get_current_branch_name() == 'master'
print(repo.rev_parse('HEAD'))
Copyright © 2020 Niklas Rosenstein
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
nr.utils.git-0.2.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for nr.utils.git-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2b1e577819ad403eaa8b666f6d0fda1cb0d7972f337fe7f80db2b40f9e3cbc5 |
|
MD5 | d4b39082cb6a40a9844f3db4cef211bf |
|
BLAKE2b-256 | 1f923423aab661d24cf744a5a0c8a1754999c350bf95fa8ddbad136eec6f22e0 |