一、安装:

windows下安装Git:

1、下载Git:https://git-scm.com/download/win

2、安装Git:默认安装,一直回车

Linux下安装Git:

yum安装:

yum install git -y

安装完即可

二、安装初始化:

成功安装完 Git 的第一件事儿就是让它知道主人是谁!
这个操作非常重要,因为每一个 Git 的提交都会使用到这些信息,一旦确定不可更改。

$ git config --global user.name "your name"
$ git config --global user.email "your_email@youremail.com"

如:

$ git config --global user.name "pzzning"
$ git config --global user.email "969xxxxxx@qq.com"

--- 本地仓库传到github上,github每次commit都会记录他们

查看信息是否写入:

C:\Users\nn>git config --list
core.symlinks=true
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=D:/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.name=pzzning
user.email=969xxxxxx@qq.com C:\Users\nn>

最新文章

  1. vim does not map customized key?
  2. 接口测试第二课(Fiddler实现APP抓包)
  3. adb devices找不着设备
  4. Python爬取百度贴吧图片
  5. BZOJ 3288 Mato矩阵 解题报告
  6. 属性文件Plist
  7. 2.4 statistical decision theory
  8. 模拟器SDK路径
  9. Git reset到某一次commit
  10. Python 简单的文件上传功能
  11. 【Codeforces 1129C】Morse Code
  12. JComBox的用法
  13. [整理]x=x++和x=++x
  14. 3.7 su命令 3.8 sudo命令 3.9 限制root远程登录
  15. dockercompose up build fail (node no such file or directory packages.json )
  16. Android Studio下“Error:Could not find com.android.tools.build:gradle:2.2.1”的解决方法
  17. Linux命令详解-info
  18. 利用js对象的特性,去掉数组中的重复项
  19. Location对象常用知识
  20. 【Udacity】异常值检测/删除

热门文章

  1. Database.SQL.join
  2. 手机端适配方案 媒体查询和flexbale
  3. 关于发件人地址会自动增加BATV及prvs的问题处理方法
  4. python 计时程序运行时间
  5. [ES]elasticsearch章2 ES查询过程解析
  6. EASYUI DATAGRID 改变行值
  7. 【机器学习】感知机学习算法(PLA)
  8. response输出随机图片、定时刷新网页
  9. 可以用WebRTC来做视频直播吗?
  10. svn log — 显示提交日志信息