提交远程代码冲突了怎么办?
提交远程代码冲突了怎么办?
1、git fetch
2、git branch -a // 查看都有那些分支
3、git merge origin/分支名
4、git push origin 分支名
查看提交记录,回滚
git log (退出查看q键)
git checkout 分支名/id(8位即可)
如 分支合并到主分支
1、git checkout master(主分支)
2、git merge 分支名/id
查看提交记录,回滚
git log (退出查看q键)
git checkout 分支名/id(8位即可)
如 分支合并到主分支
1、git checkout master(主分支)
2、git merge 分支名/id