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.4.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for nr.utils.git-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4616d1fa0a5605574637a61e904f268b065c2991ac90fa3ffde5bfdc69d19868 |
|
MD5 | 6836da20af39ce173a8c5041a370b179 |
|
BLAKE2b-256 | 5e6fa432ece177df02192a6f3d13c914a5b06a2982af4c30b96b0794eb70850b |