I would like to keep a versioning system for changes of my notes and cards. Would git be a good option ?
Yeah you can do that.
I think this Add-on is what you are looking for: GitHub - Stvad/CrowdAnki: Plugin for Anki SRS designed to facilitate cooperation on creation of notes and decks.
Unfortunately it doesn’t work well with the latest Anki version.
Anki 23.12.1 (1a1d4d54) (src) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Linux-6.6.8-arch1-1-x86_64-with-glibc2.38Traceback (most recent call last):
File “/home/chris/.local/share/Anki2/addons21/1788670778/dist/dulwich/file.py”, line 148, in init
fd = os.open(
FileExistsError: [Errno 17] File exists: ‘/home/chris/.local/share/Anki2/addons21/1788670778/user_files/Chris/MyDeck__Medicine__a_YelloW_deck__The_ABSITE_Review__5th_edition__Chapter_15__Trauma/.git/objects/3c/9a31cef15582487e1dad1fde925062de89958a.lock’The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/home/chris/anki/ankidev/qt/aqt/progress.py”, line 118, in handler
func()
File “/home/chris/anki/ankidev/qt/aqt/main.py”, line 218, in on_window_init
fn()
File “/home/chris/anki/ankidev/qt/aqt/main.py”, line 317, in setupProfile
self.loadProfile()
File “/home/chris/anki/ankidev/qt/aqt/main.py”, line 496, in loadProfile
gui_hooks.profile_did_open()
File “/home/chris/anki/ankidev/out/qt/_aqt/hooks.py”, line 4107, in call
anki.hooks.runHook(“profileLoaded”)
File “/home/chris/anki/ankidev/pylib/anki/hooks.py”, line 34, in runHook
func(*args)
File “/home/chris/.local/share/Anki2/addons21/1788670778/history/archiver_vendor.py”, line 42, in snapshot_on_sync
self.do_snapshot(‘CrowdAnki: Snapshot on sync’)
File “/home/chris/.local/share/Anki2/addons21/1788670778/history/archiver_vendor.py”, line 50, in do_snapshot
self.all_deck_archiver().archive(overrides=self.overrides(),
File “/home/chris/.local/share/Anki2/addons21/1788670778/history/archiver.py”, line 23, in archive
self.deck_archiver_supplier(deck).archive(reason=reason)
File “/home/chris/.local/share/Anki2/addons21/1788670778/history/anki_deck_archiver.py”, line 22, in archive
repo.stage_all()
File “/home/chris/.local/share/Anki2/addons21/1788670778/history/dulwich_repo.py”, line 32, in stage_all
self.dulwich_repo.stage(status.untracked + status.unstaged)
File “/home/chris/.local/share/Anki2/addons21/1788670778/dist/dulwich/repo.py”, line 1374, in stage
self.object_store.add_object(blob)
File “/home/chris/.local/share/Anki2/addons21/1788670778/dist/dulwich/object_store.py”, line 940, in add_object
with GitFile(path, “wb”, mask=PACK_MODE) as f:
File “/home/chris/.local/share/Anki2/addons21/1788670778/dist/dulwich/file.py”, line 92, in GitFile
return _GitFile(filename, mode, bufsize, mask)
File “/home/chris/.local/share/Anki2/addons21/1788670778/dist/dulwich/file.py”, line 154, in init
raise FileLocked(filename, self._lockfilename) from exc
dulwich.file.FileLocked: (‘/home/chris/.local/share/Anki2/addons21/1788670778/user_files/Chris/MyDeck__Medicine__a_YelloW_deck__The_ABSITE_Review__5th_edition__Chapter_15__Trauma/.git/objects/3c/9a31cef15582487e1dad1fde925062de89958a’, ‘/home/chris/.local/share/Anki2/addons21/1788670778/user_files/Chris/MyDeck__Medicine__a_YelloW_deck__The_ABSITE_Review__5th_edition__Chapter_15__Trauma/.git/objects/3c/9a31cef15582487e1dad1fde925062de89958a.lock’)===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Button Colours Good Again [‘2494384865’, 2022-09-27T12:18, ‘None’, ‘’]
CrowdAnki JSON exportimport Edit history Collaborate on deck creation [‘1788670778’, 2023-10-30T19:57, ‘None’, mod]
Edit Field During Review Cloze [‘385888438’, 2023-11-01T05:53, ‘6.17’, mod]
FSRS4Anki Helper [‘759844606’, 2023-12-27T08:23, ‘None’, mod]
Hint Hotkeys [‘1844908621’, 2023-04-14T16:13, ‘None’, ‘’]
Review Heatmap [‘1771074083’, 2022-06-30T03:43, ‘None’, ‘’]===IDs of active AnkiWeb add-ons===
1771074083 1788670778 1844908621 2494384865 385888438 759844606===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiHub [‘1322529746’, 2023-12-27T21:22, ‘None’, ‘’]
I also thought of creating a script that dumps the Anki’s collection database and then use git version control
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.