git tortoisegit的使用方法

1、本文操作系统为win7
安装软件:Git-2.7.0-64-bit.exe 和TortoiseGit-1.8.16.0-64bit
下载地址:http://git-scm.com/download/win下载页面如图所示
git tortoisegit的使用方法_第1张图片
http://tortoisegit.org/download/ 下载页面如图所示
git tortoisegit的使用方法_第2张图片

没用账号的用户可以先在http://www.github.com上先注册。

2、安装完成之后可以选择安装中文版tortoisegit—TortoiseGit-LanguagePack-1.8.16.0-64bit-zh_CN
下载地址: http://tortoisegit.org/download/

3、添加SSH认证
(1)生成SSH秘钥
点击电脑菜单–>所有服务–>tortoisegit
git tortoisegit的使用方法_第3张图片
git tortoisegit的使用方法_第4张图片

(2)添加公钥到github
git tortoisegit的使用方法_第5张图片
(3)将私钥保存一份–xx.ppk
git tortoisegit的使用方法_第6张图片
(4)登录github,创建一个新的repository
git tortoisegit的使用方法_第7张图片
(5)创建成功之后如图所示,复制红线圈出的内容。
git tortoisegit的使用方法_第8张图片
(6)复制圈出的内容之后,在本地电脑桌面上点击右键—>点击git clone.出现如图所以内容
git tortoisegit的使用方法_第9张图片
将刚才复制的内容粘贴到URL中。在本地新建文件夹。将地址添加到Directory.
(6)将(3)中保存的私钥添加到Load Putty Key中。如图所示:
git tortoisegit的使用方法_第10张图片
(7)上传文件(push)找到刚才添加的Directory文件夹地址。新建任意内容。(可以是当前代码)。在当前界面点击右键,如下所示
git tortoisegit的使用方法_第11张图片
点击git-commit上传文件或代码.如图所示:
git tortoisegit的使用方法_第12张图片
git tortoisegit的使用方法_第13张图片
然后点击Push–>ok,上传成功。
git tortoisegit的使用方法_第14张图片
(8)登录github–repository查看,可见3.txt已添加成功。
git tortoisegit的使用方法_第15张图片
(9)从仓库拉取文件到本地—-稍后

你可能感兴趣的:(android)