Tag Archives: Git

git调用工具 Beyond Compare工具

缘起 git 是一个很好的版本控制工具,但其开发目的是为了管理 Linux内核源码,所以只对纯文本文件十分友好,但是广大网友已经对其进行了花样的应用,比如:图床、网盘等等,今天我想用 git对word进行管理,在git diff时变成这样 看来确实不是很友好,于是我想使用 git调用一款强大的对比工具 Beyond Compare. 设置方法 配置.gitconfig文件 ​tool = bc3​[difftool “bc3”]​path = D:/Program Files (x86)/Beyond Compare 3/BCompare.exe​[merge]​tool = bc3​[mergetool “bc3”]​path = D:/Program Files (x86)/Beyond Compare 3/BCompare.exe 注意:path后面的值改成 Beyond Compare的安装位置 使用方法 在 git bash中使用git difftool -t … Continue reading

Posted in 默认分类 | Tagged | Comments Off on git调用工具 Beyond Compare工具

Git简单使用

Git是一个免费的开源分布式版本控制系统,旨在快速高效地处理从小型项目到大型项目的所有问题。Git易于学习,占用空间小,闪电般的快速性能。它超越了Subversion,CVS等SCM工具 ,Perforce和ClearCase,具有“廉价“的本地分支,方便的暂存区域和多个工作流等功能。 1. 初始 设置姓名和邮箱地址 $ git config –global user.name “Firstname Lastname”$ git config –global user.email “your_email@example.com” 2. 设置 SSH Key $ ssh-keygen -t rsa -C “your_email@example.com”Generating public/private rsa key pair.Enter file in which to save the key(/Users/your_user_directory/.ssh/id_rsa): 按回车键Enter passphrase … Continue reading

Posted in 默认分类 | Tagged | Comments Off on Git简单使用