Auto-commit the changes when quitting logseq desktop

I had enabled git auto commit on my logseq desktop. However, everytime I quit logseq, the file pages-metadata.edn will contain some un-committed changes. As I’m using git-hook for sync, I may face merge conflict the next time I use logseq.