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.3.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for nr.utils.git-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295a5a3dcce362a1df9ceee7e750e3b3cc87f084b169167a0dd05e6188396bf8 |
|
MD5 | 41c76875c55253c5e8b37933eff4e1ab |
|
BLAKE2b-256 | 7bdaca103013932497ab0e05de2ecba5f8a589b1e98018e087523b194c8aaa99 |