git 常用命令
git reset 回退git add 操作
git branch feature01创建本地分支
git push origin feature01:feature01创建远程分支
git push -u origin feature01 建立本地分支与远程新分支的关联
git push origin :feature01 左边为空,删除远程feature01分支
git branch -vv 查看本地分支与远程分支关系
git merge feature01 把feature01 合并到master
git diff 查看与暂存区比较
git merge branchname 这个命令把分支"branchname"合并到了当前分支里面。
git reset --hard head^ 回退到上一个版本
扫描二维码关注公众号,回复:
326817 查看本文章