gitInformation

This package allows you to print important information about your local git repository.


Keywords
IPython Notebook, Jupyter, GitHub, Repository
License
MIT
Install
pip install gitInformation==1.0

Documentation

ipython-notebook-git

This package allows you to interact with the git repository of your IPython/Jupyter notebook and prints the most important information about it.

Dependencies

Installation

You can install gitInformation with pip:

pip install gitInformation 

Or download the .zip file, change the directory to gitInformation folder and type:

python setup.py install

Usage

Just import gitInformation and use the printInformation function. It will collect all inforamtion by its own, so you dont need to add a .git directory.

>>> import gitInformation
>>> gitInformation.printInformation()

The output should look like this:

Information about this notebook
============================================================
Date: 2015-11-26
Python Version: 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, Nov  7 2015, 13:18:40) [MSC v.1500 64 bit (AMD64)]
Git directory: C:\Users\Dominik\Documents\GitRep\ipython-notebook-git\.git
Current git SHA: 3ca88ca17bf89f266a798c0ed08cd8d4430cb107
Remotes: origin, 
Current branch: master
origin remote URL: https://github.com/dowa4213/ipython-notebook-git.git