git checkout -b x建立分支
git branch查看分支
切换到main分支:git checkout main
回到最初状态 拉取最新代码
commitid 获取:查看日志 git log
回滚:git reset --hard commitid
git pull 拉取最新代码
将主分支与x分支合并:git merge x
git add.
git commit -m "msg"
git push
删掉X分支:git branch -D x
遇到冲突时:
A:A先提交
B:B后提交
git checkout -b x 创建x分支
git checkout master 到了master分支
git log 查看日志
git rese