文档.md 566 B

1.安装Git https://git-scm.com git

2.查看本地目录 git config --list

3.设置全局用户名 git config --global user.name 'xxx'

4.设置全局用户邮箱 git config --global user.email 'xxx'

git组成

工作区 暂存区 代码仓库

git常用命令

1.克隆仓库 git clone 仓库链接 2.提交文件 git add 文件名/.(全部提交) 3.查看暂存区文件 git status 4.对提交文件进行说明 git commit -m '说明的内容' 5.拉取文件 git pull origin 分支名 6.推送文件 git push origin 分支名 7.查看日志 git log