(全文限windows系统。)
Step1-创建密钥】
启动GUI,菜单-帮助,Generate SSH KEY

【Step2-添加密钥】去你的代码托管服务器,你的账号设置中,添加它。
比如在Github中的地址,title随意,比如你可以用Home,company等作为标识来区别。
选择红色框中的“New SSH Key”

再次选择红色框中的“Add SSH Key”,就可以保存了。

3 账号保存 (来自参考)
如果不做设置的话,每次提交的时候,都会询问你填写密码。于是我们先来把这个设置好。
【Step3.1-添加环境变量】
我的电脑 - 属性 - 高级系统设置 - 环境变量 - 新建变量
变量名HOME,变量值%USERPROFILE%




【Step3.2-创建账号文件】****
****开始 - 运行 中打开%Home%,即windows的管理员账号文件夹。****
****新建一个名为"_netrc"的文件,填写你要保存的服务器地址及账号密码,保存。****
****


- 操作流程
setup1. Create New Repository



在目录中如下图所示:

Step 2: commit file
a. Stage To Commit


b. Commit

Step 3: push GitHub
a. 在Github新建一个Repository

b. 选择 Push

c. 输入Github上的Repository:


d. 输入SSH的密码:

e. Push完成:

f: 可以在Github上看到Push的文件。

参考:
Git可视化极简易教程 — Git GUI使用方法
http://www.runoob.com/w3cnote/git-gui-window.html
网友评论