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.1.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for nr.utils.git-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dad64a6eb0a6eeba8bff8c8c301b29d2bef51cab00ba1df05d92862fd3aab4aa |
|
MD5 | 20996e057d8fe7bc42e5fe2c8f0a2657 |
|
BLAKE2b-256 | cdf447ac852c2a2b7dbc995dcfd71a7da8ba5d6de59b52ae4f65b154d372e6b1 |