Download Git for windows
Open Git Bash
Type in "ssh-keygen -t rsa", and then press Enter button three times
You can find the public key in the "file id_rsa.pub" which located in C:/Users/yourname/.ssh/
Login your GitLab account, go to Profile Settings and then go to SSH Keys, and add your public key then everything is OK!
本文转自博客园Grandyang的博客,原文链接:Add SSH Key to GitLab on Windows,如需转载请自行联系原博主。