基本操作
a 编辑模式
esc 退出编辑模式
yy复制
p粘贴
:wq保存退出
git add添加暂存区
git rm --cached<file>删除暂存区文件
git commit m"版本信息"文件名 提交本地库
git reflog 查看版本
git log 详细命令
git reset --hard 版本号 穿越版本
分支操作
git branch 分支名 创建分支
git branch -v 查看分支
git checkout 分支名 切换分支
git merge 分支名 把指定分支合并到当前分支
git remote -v查看全部别名
git remote add 别名 链接 给链接起别名
git push 别名 分支 推送到远程仓库
git pull 别名 分支 拉取远程库到本地库