Git 的常用操作 git基本操作步骤 git 常用命令 git log 查看提交日志,可以获取到commit idgit status 查看当前分支的修改保存情况git branch -vv 查看本地分支跟踪的远程分支回退版本的方法: 1.git reset --hard xxx 回退到commit id 号为 xxx的版本 2.git push -f -u origin xxx(分支名称) 强制更新到某分支cherry-pick: 更新指定提交记录的代码: 1.git cherry-pick commit id(该id可以是任意分支的提交记录) 2.resolving th conflicts (解决冲突) 3.add,commit