git 入门学习
提示:本文章记录学习 git 的笔记,使用设备为 mac arm芯片
文章目录
一、M系列Mac git 安装
安装Homebrew
安装 git
brew install git
二、Git 全局配置
查询 git 版本信息
git -v
设置用户名与邮箱并存储
git config --global user.name 姓名
git config --global user.email 邮箱
git config --global credential.helper store
查看用户信息列表
git config --global --list
三、Git 基本命令
1.获取Git仓库
本地初始化
在一个文件夹下
git init
克隆远程仓库
git clone [地址]
2.本地仓库操作
版本库:.get 文件夹就是版本库,版本库中存储了很多配置信息,日志和文件版本等
工作区:包含.get 文件夹的目录就是工