Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 253 Bytes

usage.rst

File metadata and controls

16 lines (9 loc) · 253 Bytes

Usage

To use git_wrapper in a project:

from git_wrapper.repo import GitRepo


repo = GitRepo('/path/to/repo')

repo.branch.rebase_to_hash('my_branch', 'my_commit')

repo.commit.revert('my_commit')

repo.remote.names()