-
下载Git,在Git Bash中输入
ssh-keygen -t rsa -C "your_email@youremail.com"
-
在根目录下找到 id_rsa.pub文件,复制全部内容(密匙)
-
打开个人gitlab,进入Settings,选择SSH Keys,Add SSH Key,粘贴上述密匙
-
配置本地仓库
git config --global user.name "your name"
git config --global user.email "your_email@example.com"
-
转换到本地仓库目录 输入
git add .
-
输入commit
git commit -m "your commit"
-
上传到gitlab
git push origin master
网友评论