夜owl

困到睡不着
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Git使用笔记1-介绍与安装

Posted on 2024-05-29 22:39  夜owl  阅读(40)  评论(0)    收藏  举报

Git使用笔记

什么是git,git介绍和svn对比

https://fishc.com.cn/forum.php?mod=viewthread&tid=71107&extra=page%3D1%26filter%3Dtypeid%26typeid%3D599

 

https://www.liaoxuefeng.com/wiki/896043488029600/896067008724000

 

git安装(win)

下载安装包https://git-scm.com/download/win

选择自己喜欢的ide,然后安装一直next

安装完成打开bash

安装完成后,进行git配置

Git配置

查看版本

$ git –version

用户信息设置

在命令行输入:

$ git config --global user.name "Your Name"

$ git config --global user.email email@example.com

查看已有的配置信息

使用以下命令

$ git config --list

 

最下面的两行就是用户配置

也可以用这种方式

$ git config user.name

其他配置参考

https://www.runoob.com/git/git-install-setup.html