Use ssh git clone to implement password-free git clone, push, and pull

  1. Enter it on the host ssh-keygenand press Enter. The id_rsa.pub file will be generated in the ~/.ssh folder.

  2. In the gitlab settings, select SSH Keys, find the Key column, and copy and paste the contents of the id_rsa.pub file generated by the machine into the Key column.

  3. Select the ssh protocol the next time you git clone

Guess you like

Origin blog.csdn.net/zmhzmhzm/article/details/128792705