Manages git interactions on projects. Offers a few set of management commands to quickly synchronize code. This is mostly for usage of RevSquare's developpment teams.
From Github
https://github.com/RevSquare/rs_git#egg=rs_git
The first step is to add the app in your installed apps list in settings.py
INSTALLED_APPS = (
...
'rs_git'
...
)
Then you can declare some settings of your GIT environment in your settings.py file
Location of your local pip requirements files, for exemple:
RSGIT_REQUIREMENTS_FILE = 'requirements/local.txt'
Your main project developpment branch, for exemple:
RSGIT_DEVELOPPMENT_BRANCH = 'develop'
In case you have a frontend subtree, you can use the RSGIT_FRONTEND dictionnary, for exemple:
RSGIT_FRONTEND = {
'branch': 'master',
'remote': 'static',
'path': 'myproject/frontend'
}
If all you settings variables listed above are informed, you can simply go with:
python manage.py git_sync
Otherwise you can use specific options, here are the available options with exemples:
python manage.py git_sync --branch 'develop' --remote 'origin' --requirements 'myproject/frontend'
Please feel free to contribute. Any help and advices are much appreciated.
- Development:
- https://github.com/RevSquare/rs_git