I recently upgraded to an M1 mac and was having trouble with NVM. What would happen is that when I would open up or cd into a code repo, my Mac was creating a folder in the actual root of the code repo like:
Users/me/dev/coderepo/"/Users/me/dev/.nvm"
So anytime I changed node versions, or even started up a terminal I would have multiple changes that were stored in my git.