git init 【初始化一个git项目】
git status 【查看当前项目状态】
git add . 【提交变动到缓存区】
git commit -m "我是注释" 【提交代码】
git push -u origin master 【提交代码到远程服务器】
git checkout 要切换的分支名称 【切换分支】
git checkout -b 你的feature名称 【切一个新的feature出来】
git branch 【查看我本地所有feature】
git branch -d 你的feature名称 【删除本地的feature】
git merge --no-ff 你的feature名称 【合并版本】
git pull 【拉取远程仓库所有的分支】
git reset --head 【放弃当前本地版本所有改动】
git fetch 【从远程获取最新分支版本到本地】