Getting Git init to automatically use SSH

Viewed 4082

I'm using Github SSH to push my files. I have ssh configured, but every time I init a new repo I need to change the .git/config file manually to change

url = https://github.com/alex3wielki/project-setup.git

to

url = ssh://git@github.com/alex3wielki/project-setup.git

but still I have to add my credentials on the first push. Is there any way to make it automatic?

2 Answers
Related