Hebutgo 7.21 git使用(alicode)

1.在c盘用户 文件夹下 创建 .ssh

c盘用户目录下 右键点击git bash here
输入 mkdir .ssh

2.生成密钥

https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e7546fd9001aee81fe?spm=a2cl9.codeup_devops2020_goldlog_projectFiles.0.0.3a982897FCxy40
按着操作即可

3.配置config

在 .ssh 中添加文件 config
新建文本文档 改名为 config 连同.txt一起改掉

#该文件用于配置私钥对应的服务器
#Default github user(chping_2125@163.com)
#Host git@github.com
#HostName https://github.com
#User git
#IdentityFile ~/.ssh/id_rsa

#second user(second@mail.com)
#建一个github别名,新建的帐号使用这个别名做克隆和更新
Host code.aliyun.com
HostName code.aliyun.com
User 768014876@qq.com
IdentityFile ~/.ssh/id_rsa

Host codeup.aliyun.com
HostName codeup.aliyun.com
User 768014876@qq.com
IdentityFile ~/.ssh/id_rsa

Host xiaofang@39.98.37.28
HostName 39.98.37.28
User xiaofang

克隆到本地

找到文件夹 右键点击git bash here 输入git clone 复制下来的地址
git clone git@codeup.aliyun.com:some-coder/hebutgo_three/h5.git

3.idea里面open java或者h5

4.蓝色箭头为同步绿色箭头为上传

全部评论

相关推荐

点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务