Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A very simple python git wrapper module
Python
tree: 7041357332

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
brigit
.gitignore
LICENSE
README.md
setup.py
tox.ini

README.md

briGit

Very simple git wrapper module licensed under BSD Copyright (C) 2011 by Florian Mounier, Kozea

Installation

Use pip :

pip install git+git://github.com/Kozea/brigit.git

And that's all.

Usage

from brigit import Git
new_repo = Git("~/brigit/new_repo")  # Will do a git init
git = Git("~/brigit/clone_of_brigit",
    "git://github.com/Kozea/brigit.git",
     quiet=False)  # Will do a git clone git://github.com/Kozea/brigit.git

# Then you can use all of your git command like this:
git.pull()
# Touch a new file
open(os.path.expanduser("~/brigit/clone_of_brigit/myNewFile"), "a+").close()
git.add("myNewFile")
git.commit("-a", message="Adding myNewFile")
# There's also some utils command:
git.pretty_log()
git.push() # if you have push rights
Something went wrong with that request. Please try again.