git如何把master合并到自己分支
1.切换到主分支
git checkout master
2.使用git pull把master代码拉到本地
git pull
3.切换到自己的分支——>(XXX)
git checkout XXX
4.使用merge把主分支的代码合并到自己的分支
git merge master
注意:合并时有可能会有冲突,解决完冲突才能push
5.最后push,你分支的代码就和主分支的一样了
git push
-----------------------------------
git如何把master合并到自己分支
https://blog.51cto.com/u_15060545/3448832
如何查看当前的git分支是基于哪个分支创建的?
git reflog show 分支名 或 git reflog --date=local | grep 分支名 都可以