码迷,mamicode.com
首页 > Windows程序 > 详细

Git 安装 windows && linux

时间:2018-09-30 20:14:33      阅读:370      评论:0      收藏:0      [点我收藏+]

标签:Opens   slb   roc   red   scm   http   htm   html   backend   

一、安装:

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>

 

Git 安装 windows && linux

标签:Opens   slb   roc   red   scm   http   htm   html   backend   

原文地址:https://www.cnblogs.com/pzzning/p/9733019.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!