GitSync icon

GitSync -----

You had a lot of configs and problems with keeping them actual to all your team? Get GitSync!



Introduction

With this plugin you can keep all plugins configs actual with your team, you will forget about sending tons of files from your colleagues and to them. You can assign rights to modify certain configs, allocate mentors among the administration, and so on.


How to use and install
1. Add GitSync as any plugin to your server
2. After loading GitSync, it will create directory in plugins folder and config file
3. In config file all plugins will be listed, like this:
upload_2022-4-2_2-42-36.png
4. Create your git repos (GitLab or GitHub, it doesn't matter). Create every repo without any branch.
5. For each plugin configs you want to sync, you should mark enabled: true and you should specify repo link with admin creds with rights to push into master and to force push into master. Config will look like this:

upload_2022-4-2_2-46-49.png

6. Also, notice, before pushing into remote git repo, you should specify folders or files you want to exclude from git repo in exclude section (screenshot below)
7. Save config and reload GitSync using /gsr or /gsreload
(8. This step can be skipped if your configs are in remote git after /gsr. If there are no configs uploaded to remote git, try to reload server)
9. All configs you specified should be at remote git repo!


Some important things.

1. You should install Git on you local machine where server is placed
2. Plugin expect that 'master' branch is a main server branch with configs. That means, if you as a developer of configs in administration want to upload your configs on server, you should push you commits into 'master' branch. Also, admininstration should choose by themself how commits can be pushed to 'master' (direct push or through the merge request)
3. Plugin will sync configs on any GitSync plugin loading
4. Plugin do sync with priority on local server git repo, that means if there will be conflicts, plugin will do force push to remote repo.
5. Plugin do SYNCHRONIZATION, not just PUSH to remote.
6. In most cases i recommend just to use /gss command and reloading of plugin whose configs you changed.


Commands
/gss [plugin_name] - will sync configs for specified plugin.
/gsr - will reload GitSync plugin
/gspull [plugin_name] - will try to pull changes from remote
/gspush [plugin_name] - will try to push and force push to remote


See my other plugins

TreasureHunt
InventoryBackup

Resource Information
Author:
----------
Total Downloads: 70
First Release: Apr 2, 2022
Last Update: Apr 2, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings