Obsidian Git "cannot run git command" error message

Hey I’m pretty new to Obsidan. I also don’t have any experience with Github. Since I wanted to backup my files I followed the steps mentioned in this post

I copied my .git folder to my local Obsidian vault and tried to commit all my changes. Unfortunatley the “cannot run git command” error message keeps popping up.

If someone could help me on this topic I’d be very grateful. Thanks in advance.