SublimeText-Package-Syncing icon indicating copy to clipboard operation
SublimeText-Package-Syncing copied to clipboard

Use git versioning to prevent unwanted changes on multiple installations

Open akudiyar opened this issue 11 years ago • 4 comments

If git is installed (and can be found in PATH or its path is stated in settings), use it to create a repo in sync folder, and then automatically commit/push and pull/merge (automatically if possible) the synced content. This should prevent problems with keeping different sets of settings on different machines and unwanted overrides.

akudiyar avatar Sep 24 '14 08:09 akudiyar

Or just put the folder into the dropbox.... so not a big deal

csch0 avatar Sep 24 '14 13:09 csch0

I have my sublime settings put into OneDrive, and have encountered an issue when after new installation of Sublime on second (next) machine and automatic installing some packages after syncing by the plugin, some settings are changed and so propagated to the cloud as fresh changes causing stored changes to be overriden. Also I want to have some base settings in the cloud with some differences on machines. A versioning system may help, I think. I will try to implement this functionality by myself.

akudiyar avatar Sep 24 '14 13:09 akudiyar

Just to make my idea more clear: I'm talking about a repo in the cloud, not local.

akudiyar avatar Sep 24 '14 14:09 akudiyar

some solutions:

Built in versioning of cloud provider

Many of the cloud providers have an "History of File" functions, which already tracks changes of the files. Normally it's accessible through the web interface. I know Dropbox and copy.com have this functionality (gDrive called this activities?)

Use Sparkleshare

Sparkleshare does auto syncing of folders quite like Dropbox. But it uses a git repo as a storage provider. So it does what you want auto commit/push/pull of your settings to a git repo.

Use existing Sublime Text plugin: STsync

STsync is also a Sublime Text plugin, which also auto sync Sublime Text settings but with a github.com repo instead of another folder like this plugin here.

raabf avatar Oct 14 '14 11:10 raabf