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!