I have read docs on GitHub and found that I can start ssh-agent by
eval $(ssh-agent -s)
.
But it seems every time I execute this command, I am starting a new process of ssh-agent.
How can I check if ssh-agent is already running from git bash in order to avoid start duplicated ssh-agent?
Update:Maybe because of my ignorance, I am not able to find much useful info related to my question in the provided link. I would like to know how to check whether ssh-agent has already been running or not. If yes, then how many? Not how to start ssh-agent or automatically to start it on git bash opening.