转自 https://blog.csdn.net/renfufei/article/details/41647937
原
2. TortoiseGit安装与配置
<span class="tags-box artic-tag-box">
<span class="label">标签:</span>
<a data-track-click="{"mod":"popu_626","con":"TortoiseGit"}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=TortoiseGit&t=blog" target="_blank">TortoiseGit </a><a data-track-click="{"mod":"popu_626","con":"安装"}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=安装&t=blog" target="_blank">安装 </a><a data-track-click="{"mod":"popu_626","con":"配置"}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=配置&t=blog" target="_blank">配置 </a><a data-track-click="{"mod":"popu_626","con":"Windows"}" class="tag-link" href="https://so.csdn.net/so/search/s.do?q=Windows&t=blog" target="_blank">Windows </a>
<span class="article_info_click">更多</span></span>
<div class="tags-box space">
<span class="label">个人分类:</span>
<a class="tag-link" href="https://blog.csdn.net/renfufei/article/category/2749295" target="_blank">GitHub </a>
</div>
</div>
<div class="operating">
</div>
</div>
</div>
</div>
<article class="baidu_pl">
<div id="article_content" class="article_content clearfix" data-track-click="{"mod":"popu_307","con":",https://blog.csdn.net/renfufei/article/details/41647937"}">
<div class="article-copyright">
版权声明:欢迎加入【开源技术交流群 316630025】: https://jq.qq.com/?_wv=1027&k=5GrHn71 https://blog.csdn.net/renfufei/article/details/41647937 </div>
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-cd6c485e8b.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-cd6c485e8b.css">
<div class="htmledit_views" id="content_views">
<p style="color:rgb(51,51,51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;font-size:16px;line-height:25.6000003814697px;"></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">TortoiseGit 简称 tgit, 中文名海龟Git. 海龟Git只支持神器 Windows 系统, 有一个前辈海龟SVN, TortoiseSVN和TortoiseGit都是非常优秀的开源的版本库客户端. 分为32位版与64位版.并且支持各种语言,包括简体中文(Chinese, simplified; zh_CN).</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">注意:</span> XP系统已经不支持最新的安装包,请尽量使用 Win7 或更高版本的操作系统.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">官方说明是: Windows XP 只兼容 1.8.16.0 及之前的版本: (last version which is compatible with Windows XP is <a href="https://download.tortoisegit.org/tgit/1.8.16.0/" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">1.8.16.0</a>;</p><h2 style="line-height:1.25;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';"><a name="t0"></a><a id="user-content-下载" class="anchor" href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/02_TortoiseGit.md#%E4%B8%8B%E8%BD%BD" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;margin-left:-20px;line-height:1;"></a>下载</h2><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">0.</span> TortoiseGit-2.3中文版与Git安装包: <a href="http://download.csdn.net/detail/renfufei/9738152" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">http://download.csdn.net/detail/renfufei/9738152</a></p><ol style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><li>TortoiseGit下载页面: <a href="http://download.tortoisegit.org/tgit/" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">http://download.tortoisegit.org/tgit/</a></li></ol><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">2.</span>打开下载页面后, 找到对应的 Latest stable release (最新稳定版) 目录,如当前为 <a href="https://download.tortoisegit.org/tgit/2.3.0.0/" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">2.3.0.0版本</a> , 点击进入对应的页面.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/201_StableGit.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/201_StableGit.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">选择一个版本</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">3.</span>进入具体版本页面后,根据Windows操作系统版本选择相应的程序安装包和中文语言包.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">比如, 32位系统(带32bit,或者 x86, i586等标识).</p><ul style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><li>32位程序安装包下载地址: <a href="https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-2.3.0.0-32bit.msi" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-2.3.0.0-32bit.msi</a></li><li>32位中文语言包下载地址: <a href="https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-LanguagePack-2.3.0.0-32bit-zh_CN.msi" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-LanguagePack-2.3.0.0-32bit-zh_CN.msi</a></li></ul><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">同样, 64位系统(带64bit,或者 x86_64, x64等标识).</p><ul style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><li>64位程序安装包下载地址: <a href="https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-2.3.0.0-64bit.msi" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-2.3.0.0-64bit.msi</a></li><li>64位中文语言包下载地址: <a href="https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-LanguagePack-2.3.0.0-64bit-zh_CN.msi" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">https://download.tortoisegit.org/tgit/2.3.0.0/TortoiseGit-LanguagePack-2.3.0.0-64bit-zh_CN.msi</a></li></ul><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">版本下载页面如下所示:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/202_gitVersion.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/202_gitVersion.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">请下载对应的安装包和语言包,放到某个目录下. 然后像上一节所说的 Git 安装包一样, 查看下载完成的文件属性,解除锁定.</p><h2 style="line-height:1.25;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';"><a name="t1"></a><a id="user-content-安装" class="anchor" href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/02_TortoiseGit.md#%E5%AE%89%E8%A3%85" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;margin-left:-20px;line-height:1;"></a>安装</h2><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">4.</span> 我们需要先安装程序包,然后安装语言包(LanguagePack). 因为TortoiseGit 只是一个程序壳,必须依赖一个 Git Core,也就是上一节我们安装的 Git. 所以安装前请确定已完成<a href="http://blog.csdn.net/renfufei/article/details/41647875" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;">上一节的操作</a>. 下面以64位版本为演示(64,32位除文件名不一样,其他的操作都一致)</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">5.</span> 双击安装程序 <code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">TortoiseGit-2.3.0.0-64bit.msi</code>. 弹出安装向导界面:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/203_tgitWizard.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/203_tgitWizard.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">6.</span>下一步,进入版权信息界面. 直接点击下一步(Next)即可.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/204_tgit_License.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/204_tgit_License.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">6.1</span>下一步,选择SSH客户端. 可以选择 TortoiseGitPlink(位于TortoiseGit安装目录/bin 下), 也可以选择 Git 默认的SSH客户端,位于 Git安装目录/bin/ssh.exe(如果配置了 Path,那直接是 ssh.exe)</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/204_2_tgit_Network.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/204_2_tgit_Network.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">7.</span> 接着是选择安装目录,可以保持默认,或者安装到开发环境目录下,安装的程序组件保持默认即可:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/205_tgit_dir.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/205_tgit_dir.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">8.</span>下一步到确认安装界面,点击 Install按钮安装即可,如下图所示:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/206_install_tgit.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/206_install_tgit.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">9.</span>安装完成,点击 Finish 按钮即可:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/207_tgit_installed.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/207_tgit_installed.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">9.1</span> 如果以前有老版本,则选择覆盖,关闭旧程序并尝试重启即可</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">10.</span> 安装语言包</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">双击打开 <code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">TortoiseGit-LanguagePack-2.3.0.0-64bit-zh_CN.msi</code> ,则弹出语言包安装向导:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/208_LanguageWizard.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/208_LanguageWizard.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">11.</span> 点击下一步(Alt+N), 语言包会自动安装完成:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/209_LangPackFinished.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/209_LangPackFinished.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">点击完成按钮即可</p><h2 style="line-height:1.25;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';"><a name="t2"></a><a id="user-content-配置" class="anchor" href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/02_TortoiseGit.md#%E9%85%8D%E7%BD%AE" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;margin-left:-20px;line-height:1;"></a>配置</h2><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">1.</span> 首先,请选定一个存放Git项目的目录,这样管理方便. 如: <code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">F:\STUDY\GIT_STUDY</code> , 然后在资源管理器中打开.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">2.</span> 在空白处点击鼠标右键, 选择 --> TortoiseGit --> Settings, 然后就可以看到配置界面:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/210_LanguageSel.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/210_LanguageSel.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">3.</span> 选中General,在右边的 Language中选择中文. 不勾选自动升级的复选框,可能还需要指定 Git.exe 文件的路径,如 "<code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">D:\DevlopPrograms\Git\bin</code>". 完成后,点击应用,确定关闭对话框.(当然,你也可以继续使用英文)</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">4.</span> 再次点击鼠标右键,可以看到弹出菜单中已经变成中文. 原来的 <span style="font-weight:600;">Settings</span> 变成 <span style="font-weight:600;">设置</span>; <span style="font-weight:600;">Clone</span> 变为 <span style="font-weight:600;">克隆</span>.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">5.</span> 配置右键菜单. 在设置对话框中,点选左边的"右键菜单",然后在右边将所有的复选框都去掉,这样右键菜单显得比较干净:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/211_contextMenu.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/211_contextMenu.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">6.</span>设置记住密码</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><span style="font-weight:600;">!!!!!</span> 密码会明文保存在 <code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">C:\Users\Administrator\.git-credentials</code> 这种文件中, <span style="font-weight:600;">请小心使用</span>.</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">进入设置, 点选左边的Git标签.可以发现,右边可以配置用户的名字与Email信息. 如下图所示:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/212_remberpass.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/212_remberpass.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">因为当前还没有本地项目,所以 “<code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">编辑本地 .git/config(L)</code>” 按钮处于灰色不可用状态,如果在某个本地Git项目下打开配置对话框,那么这个按钮就可用,然后就可以编辑此项目的一些属性。</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">点击 “<code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">编辑全局 .git/config(O)</code>”按钮,会使用记事本打开全局配置文件,在全局配置文件中,在后面加上下面的内容:</p><pre style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;line-height:1.45;overflow:auto;color:rgb(51,51,51);"><code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;background:transparent;border:0px;display:inline;overflow:visible;line-height:inherit;" class="hljs delphi"><ol class="hljs-ln" style="width:182px"><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="1"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line">[credential]</div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="2"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-keyword">helper</span> = store</div></div></li></ol></code><div class="hljs-button {2}" data-title="复制" onclick="hljs.copyCode(event)"></div></pre><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">完成后保存,关闭记事本,确定即可。</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">则当你推送项目到GitHub等在线仓库时,会记住你输入的用户名和密码(这里不是用户的姓名和Email哦.)</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">如果你编辑的是 <code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">本地 .git/config(L)</code>,其实这个翻译为<span style="font-weight:600;">本地</span>有点问题,应该叫<span style="font-weight:600;"><code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">局部</code></span>,也就是在某个项目下面设置,只对此项目有效.配置是一样的.</p><ul style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><li><span style="font-weight:600;">用户名</span>: 就是你注册的账号,如: tiemaocsdn</li><li><span style="font-weight:600;">密码</span>: 当然是注册时填写的密码: *********</li><li><span style="font-weight:600;">Email</span>: 是你的联系邮箱,给别人联系你时使用</li><li><span style="font-weight:600;">用户姓名/昵称</span>: 可以随便取,但最好有点意义</li></ul><h2 style="line-height:1.25;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';"><a name="t3"></a><a id="user-content-示例" class="anchor" href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/02_TortoiseGit.md#%E7%A4%BA%E4%BE%8B" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;margin-left:-20px;line-height:1;"></a>示例</h2><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">克隆一个项目:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">在工作目录下,如 “<code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;">F:\STUDY\GIT_STUDY</code>”中,鼠标右键点击空白处,选择: TortoiseGit --> 克隆...(clone...) ;则会弹出克隆对话框,如下图所示:</p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;"><a href="https://github.com/cncounter/translation/blob/master/tiemao_2014/GitHelp/213_CloneRepository.png" rel="nofollow" style="color:rgb(64,120,192);text-decoration:none;"><img src="https://github.com/cncounter/translation/raw/master/tiemao_2014/GitHelp/213_CloneRepository.png" alt="" style="border-style:none;"></a></p><p style="color:rgb(51,51,51);font-family:'-apple-system', BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;">在URL中填写项目的访问地址,如:</p><pre style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;line-height:1.45;overflow:auto;color:rgb(51,51,51);"><code style="font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:13.6px;background:transparent;border:0px;display:inline;overflow:visible;line-height:inherit;" class="hljs java">https:<span class="hljs-comment">//github.com/cncounter/translation.git</span>
本地目录,你也可以自己选择,一般默认即可.然后点击"确定"按钮,开始克隆项目. 根据项目大小,时间会不一样. 克隆完成后,如果没有错误,会给出提示:
- 克隆: 就类似于拷贝,但是因为 SVN,Git之类的版本库存储时都是一个(数据)库,所以叫克隆.
- Git项目的URL: 可以在线访问Git项目页面,在右侧可以看到 SSH, HTTPS, SVN的访问路径.
例如:
- 页面地址: https://github.com/cncounter/translation
- HTTPS : https://github.com/cncounter/translation.git
- SSH : git@github.com:cncounter/translation.git
- SVN : https://github.com/cncounter/translation
可以发现,大同小异. 如下图所示:
相关文章
- 目录
- 安装及配置Git
- 安装及配置TortoiseGit
- Git与TortoiseGit基本操作
- MarkDown示例
- 解决 TortoiseGit 诡异的 Bad file number 问题
- 加入QQ群GitHub家园: 225932282
日期: 2014-11-27
作者: 铁锚: http://blog.csdn.net/renfufei