some of my git documentation
home • glossary • common commands • branching strategies • troubleshooting • ssh setup
Using SSH authentication for communicating with remote repos is generally easier than using https. Sometimes it’s required for certain repos or by rules set at the hosting level.
Here’s how to get set up with SSH keys
ssh-keygen
and press enter
cat ~/.ssh/id_rsa.pub
ssh-rsa
and ends with username@computer_name
)https://
)
git clone git@gitawse1.hagerty.com:<username>/<project>
git remote add origin git@gitawse1.hagerty.com:<username>/<project>
You should now be able to use SSH URLs for connections between your terminal and the remote that you copied the key to