Supermemo backup using Git

From Pleasurable Learning
Revision as of 16:50, 26 August 2021 by Guillem (talk | contribs) (Created page with "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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

sM-push.bat

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

pull-sm.bat

git pull

resolve-conflicts

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