I write my notes in Joplin.<p>I export them as .md (markdown).<p>It turns them into two folders<p>Resources<p>NGINX@HOME (The name of my note book)<p>Resources consists of images.<p>NGINX@HOME consists of markdown file.<p>Now, I push them into github using this post<p>https://stackoverflow.com/a/63645193/19901123<p>Next time, I write 2nd note on NGINX.<p>I write it in the same notebook as earlier.<p>I export it as .md.<p>Again it makes the two folders with same name as above because the notebook is same.<p>Now, I want to to push that code to github to the same repository.<p>But when I try it I get various errors.<p><pre><code> error: failed to push some refs to 'https://github.com/<my_github_id>/my_notes.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
</code></pre>
I do `git pull origin main` but it still fails to upload.<p><pre><code> fatal: refusing to merge unrelated histories
</code></pre>
How do I resolve this issue?