Set Up GitSSH
1. Initialize git username and email
This is the global setting
git config --global user.name "XXX"
git config --global user.email "xxx@eeee.com"
2. Create SSH
$ ssh-keygen -t rsa -C "your_email@163.com"
press enter key if you are comfortable with defalt settings

3. get public key or copy public key
get pub_key
$ cat ~/.ssh/id_rsa.pub
copy
$ clip < ~/.ssh/id_rsa.pub
4. Paste the pub_key onto GitLab

notice: must be the public key
5. IDEA get from version control

6247



被折叠的 条评论
为什么被折叠?



