git命令的使用速成!
一,简单的代码提交流程
git status 查看工作区代码相对于暂存区的差别
git add . 将当前目录下修改的所有代码从工作区添加到暂存区 . 代表当前目录
git commit -m ‘注释’ 将缓存区内容添加到本地仓库
git log 查看提交记录
git merge 分支名 合并分支
git branch 查看分支
git branch name 创建分支
git branch -d name 删除分支
git checkout name 切换分支
git checkout . 撤销所有
原创
2020-11-10 16:11:46 ·
786 阅读 ·
2 评论