I search many questions, like this Configuring Git over SSH but the answers just configure the remote URI for a particular project. I want a global effect.
What I want is when I clone over HTTPs
git clone https://github.com/octocat/Spoon-Knife.git
and git will transform the call into SSH
git clone git@github.com:octocat/Spoon-Knife.git
How to do this ?