Git小乌龟的安装及使用
1.先下载git,按照相应的系统,https://git-scm.com/downloads,然后,一直next即可完成安装
2.安装git小乌龟,https://tortoisegit.org/download/,同样的,一直next即可完成安装,但是,需要注意的是必须先安装git,在安装git小乌龟
3.安装语言包,同样是https://tortoisegit.org/download/,然后一直next即可,要先装完小乌龟在安装语言包。
![](http://upload-images.jianshu.io/upload_images/15263556-202cb6f6bd418eb8.png?imageMogr2/auto-orient/strip|imageView2/2/w/599/format/webp)
4.右键→tortogit→setting,把language项改为中文,点击确定就可以了
![](http://upload-images.jianshu.io/upload_images/15263556-5e304b6da7630df8.png?imageMogr2/auto-orient/strip|imageView2/2/w/375/format/webp)
![](http://upload-images.jianshu.io/upload_images/15263556-85294d0fa81edb4d.png?imageMogr2/auto-orient/strip|imageView2/2/w/787/format/webp)
5.选择你的代码托管平台,github,码云等都可以,随你的喜好,然后进行登录或注册,新建项目
![](http://upload-images.jianshu.io/upload_images/15263556-e8b976c4161d04c3.png?imageMogr2/auto-orient/strip|imageView2/2/w/276/format/webp)
6.新建完成项目以后打开项目,点击克隆、下载,复制这串地址
![](http://upload-images.jianshu.io/upload_images/15263556-91ace1570d37dce2.png?imageMogr2/auto-orient/strip|imageView2/2/w/318/format/webp)
7.本地新建一个文件夹,名字可以随便命名
![](http://upload-images.jianshu.io/upload_images/15263556-87d462208a380e21.png?imageMogr2/auto-orient/strip|imageView2/2/w/98/format/webp)
8.点击进入文件夹内,然后右键创建版本库
![](http://upload-images.jianshu.io/upload_images/15263556-e88aacffb28a6f24.png?imageMogr2/auto-orient/strip|imageView2/2/w/266/format/webp)
9.不勾选,直接确定
![](http://upload-images.jianshu.io/upload_images/15263556-017194243fbb223b.png?imageMogr2/auto-orient/strip|imageView2/2/w/539/format/webp)
10.右键选择设置
![](http://upload-images.jianshu.io/upload_images/15263556-08a634e2ad64aeef.png?imageMogr2/auto-orient/strip|imageView2/2/w/496/format/webp)
11.填入你注册的时候用的用户名和邮箱
![](http://upload-images.jianshu.io/upload_images/15263556-ac153148f830c497.png?imageMogr2/auto-orient/strip|imageView2/2/w/448/format/webp)
12.点击右侧的远端
![](http://upload-images.jianshu.io/upload_images/15263556-6b8a2fa50fde3e89.png?imageMogr2/auto-orient/strip|imageView2/2/w/215/format/webp)
13.将之前码云或者你github上面的那串复制的地址写入url以及推送url里面,先点击添加/保存,跳出的框不用做任何修改,直接确定
![](http://upload-images.jianshu.io/upload_images/15263556-0fc1e13428154f16.png?imageMogr2/auto-orient/strip|imageView2/2/w/524/format/webp)
![](http://upload-images.jianshu.io/upload_images/15263556-457f229f5e496be9.png?imageMogr2/auto-orient/strip|imageView2/2/w/560/format/webp)
14.点击确定以后会弹出一个框,让你进行身份认证,你只需要将你之前注册的用户名密码重新输入一遍,然后小乌龟就开始抛投了,抛投完成以后,显示成功之后,点击关闭即可,现在,你的本地仓库就已经建好了
![](http://upload-images.jianshu.io/upload_images/15263556-ab53fd4d531327b1.png?imageMogr2/auto-orient/strip|imageView2/2/w/570/format/webp)
15.你可以通过拉取获得项目最新的成果,如果是多人协作的话,最好先拉取在提交
![](http://upload-images.jianshu.io/upload_images/15263556-190998234b2bc4ab.png?imageMogr2/auto-orient/strip|imageView2/2/w/201/format/webp)
16.以后你有什么需要更新的,只需要先提交,在同步即可,需要注意的是,提交只是提交到本地版本库,并非提交到远程版本服务器,所以,你要想在远程版本服务器上看到你最新的修改,你还需要同步
![](http://upload-images.jianshu.io/upload_images/15263556-46cf359cfb807f6f.png?imageMogr2/auto-orient/strip|imageView2/2/w/267/format/webp)
17.同步点击推送即可,一定要先提交再同步
![](http://upload-images.jianshu.io/upload_images/15263556-f05c28b8380e4115.png?imageMogr2/auto-orient/strip|imageView2/2/w/684/format/webp)
写了那么多,写的不是很好,主要参考了https://www.cnblogs.com/xuanwotianming153/p/8504762.html,如果觉得哪里又看不懂的,可以点击上面的链接看原作者的博客。