windows下gitGUI登陆coding并上传代码

windows下gitGUI登陆coding并上传代码
 

1.注册并登陆coding网站

2.创建项目

 

3.项目创建完成后选择ssh并copy链接地址

 

4.下载并安装git,所有设置默认即可;

-->设置Git的user name和email:

$ git config --global user.name "用户名"

$ git config --global user.email "你的邮箱"

生成SSH密钥过程:

-->1.查看是否已经有了ssh密钥:cd ~/.ssh

如果没有密钥则不会有此文件夹,有则备份删除

-->2.生成密钥:

$ ssh-keygen -t rsa -C “邮箱”

-->按3个回车,密码为空。

Your identification has been saved in /home/tekkub/.ssh/id_rsa.

Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.

The key fingerprint is:

………………

最后得到了两个文件:id_rsa和id_rsa.pub

-->4.在coding上添加ssh密钥,这要添加的是“id_rsa.pub”里面的公钥。

打开coding,登陆,然后添加ssh。

 

 

添加完成后在你需要创建项目的本地磁盘内右击打开git gui

 

选择clone Existing repository

 

source location 填写上文中复制的ssh地址,Targect directory 填写项目的本地路径

 

 

等待克隆到本地完成。

 

GUI 的好处是操作简单一目了然,个人非常喜欢

posted @ 2017-04-10 17:13  sunxiaolongblog  阅读(629)  评论(0编辑  收藏  举报