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