Redmine to git
This tool uses the Redmine REST API
for fetching data from a specific project and push that to a git repository., (*1)
Currently only wiki pages are supported., (*2)
Installation
The installation is simple by using composer. After installing composer you can either install the command globally or within a project., (*3)
Global
In the global installation redmine-to-git will be available as a command line tool., (*4)
- Run
composer global require derhasi/redmine-to-git to install globally.
- Add
export PATH=~/.composer/vendor/bin:$PATH to your .bashrcor .profile
After the installation you should be able to run redmine-to-git wiki ... from anywhere., (*5)
Local
You can run composer require derhasi/redmine-to-git in any composer enabled project to add this project as a dependency., (*6)
Usage
Currently the command is ..., (*7)
php redmine-to-git.php wiki redmine apikey project repo --subdir=subdir --maxFilesize=1234, (*8)
-
redmine: URL of your Redmine installation
-
apikey: API Key for accessing the redmine API
-
project: Machine name of the Project to grab the wiki from
-
repo: path to git working directory
-
subdir: optional subdirectory to put files and index to
-
maxFilesize: optional maximum filesize for attachments to download
Type php redmine-to-git.php help wiki for additional information., (*9)
Help
The project is hosted on github, so
please file any issues or questions in the
Issue Queue., (*10)