Supermemo backup using Git

From Pleasurable Learning
Revision as of 13:05, 2 November 2021 by Guillem (talk | contribs)
Jump to navigation Jump to search

This article is being written incrementally. Please come back in the future to see updates. Once it is finished this warning will disappear

Seting up a Git backup using Gitlab


I storngly discourage naming the files "pull.bat" and "push.bat" as both will be next to each other, increasing the chances to missclick leading to potential local deletions.

Synching made with current computer i.e. updating backup

sm-push.bat to sync your changes to the cloud

git add -A && git commit -m "Update"
git push


Synching changes made from another computer

pull-sm.bat to get the cloud version to your computer.

git pull

Resolving conficts

resolve-conflicts neded when different computers used SuperMemo asynchronously.

git reset --hard
git checkout -b temp
git branch -D main
git fetch
git checkout main



Resolving 502 HTTP error

The 502 HTTP error is triggered whent rying to sync your collection to git that is too large. The solution is what I call incremental commit & push.