# 设置用户名与邮箱 git config --global user.name "[名称]" git config --global user.email "[邮箱]" # 验证 git config --global --list
# 克隆项目 git clone 粘贴基于HTTPS或者SSH的地址 # Github国内镜像 git clone https://github.com.cnpmjs.org/linwenhai/Notes.git
# 下载项目的最新更改 git pull origin master -u # 浏览您所做的更改 git status # 将更改加入到本次提交 git add . git commit -m "提交的描述" # 提交您的更改到服务器 git push origin master
# 创建一个分支 git checkout -b 分支名称 # 在某分支上进行开发 git checkout 分支名称 # 将某分支合并到master分支 git checkout master git merge 分支名称
原文:https://www.cnblogs.com/linwenhai/p/14610341.html