This Redmine plugin enables synchronization of Git repositories with Redmine projects. It allows users to clone or update Git repositories directly into the Redmine environment.
cd /path/to/redmine/plugins
git clone https://github.com/de-poltorasky/redmine_git_sync.git
bundle install
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
sudo systemctl restart redmine
Navigate to the project in Redmine.
Configure the permission
Enable the Plugin within the project
Go to the "Git Sync" tab.
Enter the source repository URL, API key, and other options.
Click "Sync" to clone or update the repository.
After synchronization, repositories are stored in the files/git_repositories directory. The plugin displays: Identifier: Extracted from the repository URL. Path: Local filesystem path with .git appended. Contents: List of files within the repository.
Note: This plugin only performs synchronization. For tracking and other SCM functionalities, use Redmine's built-in Git SCM feature using output data.
Using the Bash script located in the bash folder, you can automate the synchronization of all branches across multiple Git repositories with their remote sources. By setting up a cron job for this script, each repository will remain up-to-date automatically. The script switches to each branch, pulls the latest changes, and returns to the originally active branch, making it ideal for environments that require regular repository updates.
Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus de détails.