Tortoisegit 工具的安装和使用

Tortoisegit
Tortoisegit 是一款图形化的软件,主要用于操作 git。相信大家对于 git 的诸多命令都是很难记全的,所以可以通过使用 Tortoisegit 来对项目的上传、提交、更新等等操作进行相当大的简化。
Tortoisegit 下载
Tortoisegit 的下载主要分为两大部分,第一部分是 Tortoisegit 下载配置,第二部分是 Tortoisegit 中文包的下载配置。相信在安装 Tortoisegit 之前大家肯定也都有了 git 吧,要是没有大家可以先把 git 进行安装了。可以参考:git和GitHub的使用(一)

一、从官网上进行下载
官网地址:Tortoisegit官网


下载下来的安装包

安装 Tortoisegit 包
先点击安装包进行 Tortoisegit 安装






点击 install 进行安装

安装完成

安装完成后,在文件夹中点击鼠标右键,可以看到 Tortoisegit 已经出现

安装中文语言包
此时的 Tortoisegit 版本为英文,可以使用下载的 TortoiseGit-LanguagePack-2.11.0.0-64bit-zh_CN 进行安装,安装极其简单


目前 Tortoisegit 工具已经是中文版

到此为止,Tortoisegit 工具已经安装完成了
Tortoisegit 的使用
现在可以使用 Tortoisegit 工具去管理 git 项目了
去 GitHub 上面找一个项目,或者也可以自己创建。复制地址,创建一个文件夹,点击鼠标右键,选择 Git 克隆

将 GitHub 仓库地址复制到 URL 中,选择确定,会进行项目克隆

正在克隆项目
克隆完成,项目已经存在在文件夹中

2、克隆下项目之后,可以使用 vs code 打开项目,然后对项目进行修改,之后可以在文件夹中右键鼠标,选择提交项目

注意:在 Tortoisegit 需要设置一下用户名和电子邮箱


然后进入提交窗口,输入日志信息,进行文件提交

可以选择将改变推送到远程的 GitHub 仓库当中

此时会弹出窗口,需要你输入远程仓库的账号和密码
输入账号
输入密码

提交推送成功,GitHub 仓库已经更新

在开发项目的过程中,项目管理是必不可少的环节,tortoisegit 是一款使用起来较为方便的 git 管理图形化工具了,用法也非常简单
版权声明: 本文为 InfoQ 作者【空城机】的原创文章。
原文链接:【http://xie.infoq.cn/article/d4a611525e8627937db5402e5】。
本文遵守【CC-BY 4.0】协议,转载请保留原文出处及本版权声明。
评论