Git版本控制工具
Git安装:下载地址 https://git-scm.com/downloads
Git Diff解决冲突工具 https://www.scootersoftware.com/download.php
学习笔记PDF格式 点击我打开浏览
视频链接 分享链接 访问密码:1zFLQ
- 配置Beyond Compare 来解决冲突
git config --global merge.tool bc3
# linux系统
git config --global mergetool.path '/usr/local/bin/bcomp'
# Windows系统
git config --global mergetool.path "C:\Program Files\Beyond Compare 4\BCompare.exe"
git config --global mergetool.keepBackup false
如果只是本项目中使用此配置,把
global
换成local
即可
- 实际工作中会把Git用户名和邮箱一起配置
git config --system user.name 'zhangxxxxxx'
git config --system user.name 'xxxxxx@qq.com'
- 配置忽略文件
windows系统
C:Userszhangdingqu.gitconfig
linux系统
~/.gitconfig
文件添加以下文本
[user]
email = xxxxxx@qq.com
name = zhangxxxxxx