gitlab&vmware安装
关于SSH:
先执行以下语句来判断是否已经存在本地公钥:
cat ~/.ssh/id_rsa.pub
你可以按如下命令来生成ssh key:
ssh-keygen -t rsa -C "mail@mail"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/84107/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/84107/.ssh/id_rsa.
Your public key has been saved in /c/Users/84107/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:t2A6yjdytloCNpOdWfOpTKqLa1HCGhR2lxAIYhrQHSc 841079936@qq.com
The key's randomart image is:
+---[RSA 2048]----+
|B=o=Eoo |
|=+o o+ |
|+ o |
|.o + + o . |
|..O + . S . |
|.o + + + o . |
| . o * . |
| o o.+=. |
|+.o.+*.o |
+----[SHA256]-----+
C:\Users\84107
用以下命令获取你生成的公钥:
cat ~/.ssh/id_rsa.pub
复制这个公钥放到你的个人设置中的SSH/My SSH Keys下.这个是Windows系统复制到粘贴板:
clip < ~/.ssh/id_rsa.pub
// 如果在Windows下自带的cmd不能使用以上命令 就用以下命令
clip < %userprofile%/.ssh/id_rsa.pub
把SSH添加到个人设置的SSH中:这个是地址:
https://code.aliyun.com/profile/keys
Create a new repository
git clone git@code.aliyun.com:yexiaoxiaogo/111.git
cd 111
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder or Git repository
cd existing_folder
git init
git remote add origin git@code.aliyun.com:yexiaoxiaogo/111.git
git add .
git commit
git push -u origin master
Comments
Leave a comment