Obsidian git keeps asking for password

What I’m trying to do

I’m trying to stop obsidian git to stop asking for my password and just automatically do pushes to my github account without asking for my permission

Things I have tried

I added my ssh key to my github account and my laptop but it still keeps asking me for my password.

It also says the ssh key isn’t being used on my github account, did i do something wrong here?

do i need to put the ssh key in the same folder the obsidian vault is in?