-
git add . 添加至暂缓冲区
-
git commit -m “内容描述” 提交
-
git branch 查看本地的所有分支
-
git branch 分支名称 创建分支
-
git checkout -b 分支名称 创建并切换分支
-
git remote add origin 远程仓库地址
git push origin master 将本地项目给提交到服务器中 -
git config --global user.name “xxx” 设置用户名
- git config --global user.email “xxxx” 设置邮箱地址
9. git clone 远程仓库地址 克隆远程仓库
10. git init 初始化本地git仓库
- git config --global user.email “xxxx” 设置邮箱地址