둘 다 vault의 .obsidian/ 폴더 안에 있는데, 하나는 설정이고 하나는 화면 상태입니다.
app.json은 Settings에서 바꾼 옵션을 저장합니다. 앞에서 말씀드린 첨부파일 폴더(attachmentFolderPath: "pic")나 Source mode 같은 값이 여기에 들어갑니다. 직접 바꾸지 않으면 그대로 유지됩니다.
workspace.json은 지금 열려 있는 탭, 창 분할 배치, 사이드바 상태, 최근 연 파일 목록을 저장합니다. 창을 움직일 때마다 자동으로 계속 바뀝니다.
그래서 Git으로 vault를 관리할 때는 보통 app.json은 커밋하고 workspace.json은 .gitignore에 넣습니다.
appearance.json
appearance.json stores the options from Settings → Appearance: the light/dark mode, the community theme, the font size, and which CSS snippets are turned on.
In this tutorial vault it is almost empty, because we changed only one option (showing the left ribbon):
{ "showRibbon": true}
After a student picks a theme, changes the font size, and turns on a snippet, it looks more like this:
Newer versions use the "id": true/false object shown above, so you can also see which plugins are turned off.
The settings inside each core plugin are saved in a separate file named after the plugin, for example daily-notes.json or templates.json. Community plugins are listed in a different file, community-plugins.json.
Summary: which files to commit to Git
File
What it stores
Commit to Git?
app.json
Settings options (e.g. attachment folder)
Yes
appearance.json
Theme, font size, CSS snippets
Yes
core-plugins.json
Which core plugins are on/off
Yes
workspace.json
Open tabs, layout, recent files
No, add to .gitignore
The first three change only when you change a setting, so they are safe to share. workspace.json changes every time you move a window, so committing it causes constant changes and merge conflicts.