obsidian git merge 시 confict 방지

silvereun ㅣ 2023. 11. 20. 00:40

 

gitignore을 추가해주어야 .obsidian 내의 workspace.json 파일을 무시할 수 있다.
해당 파일은 Obsidian에서 문서를 열 때마다 내용이 수정되어 git 연동 시 conflict를 유발 시킨다.

gitignore 추가

.DS_Store obsidian/workspace.json .obsidian/workspace.json obsidian/workspace-mobile.json .obsidian/workspace-mobile.json 

git add가 되었거나 commit이 된 경우는 .gitignore가 적용되지 않는다. 적용하기 위해서는 먼저 git에서 제거 해야 한다.

git rm [파일명]  git commit -m [메시지] 

'기타 > Obsidian' 카테고리의 다른 글

옵시디언 글자 사라짐, 이모지 사라지는 현상  (0) 2024.05.09