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.1.6.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for nr.utils.git-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03534ccd02eec869cc2fa735915e424ecdd864c4858bdecc2fbb25e8f2f1f6ff |
|
MD5 | f9e5040101c209ab64bec7c00e35197a |
|
BLAKE2b-256 | f237710373292e7dbce2f7a00efe69c67b943c7061dab1027e24a2b22256515f |