git

一。 git与svn区别

         1. git分布式的scm  svn是集中式的

          2. git每个历史版本存储完整的文件, svn存储文件差异

          3.git可离线完成大部分操作  svn依赖于网络

           4. git有更优雅的分支与合并的实现

            5. git有更强的撤销更改 修改历史版本能力  速度快 效率高

二。 下载git

       安装打勾项

1、Additional icons    --勾选后会在桌面创建Git图标
2、Windows Explorer  integration   --windows资源管理器集成,就是在点击鼠标右键时会出现相应的Git选项
3、Associate .git* configuration files with the default text editor  --Git默认的文本编辑器 --这里应该是Vim编辑器
4、Associate .sh files to be run with Bash  --.sh 运行bash
5、use a trueType font in all console windows  --在所有的控制台窗口使用TrueType字体(我一般不会选择)

 三。配置git信息

        

git config -- global user.name 用户名 //配置用户名
git config --global user.email xxx@126.com//配置邮箱

四。 配置级别

      1. local(当前仓库) > gloabal(当前用户)> system (当前系统)

五。 看git文档

      

git config --help

git help config

六。 重命名git命令

  

git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.st status
git cofnig --global alias.ci commit
原文地址:https://www.cnblogs.com/moneyss/p/8716284.html