当前位置:   article > 正文

git 头指针分离_git 头指针分离于 3640d96

git 头指针分离于 3640d96

git中头指针分离
原因:1. repo命令未執行 repo start ${branch_name} --all
该命令给当前工作空间命名
解決:
1.git checkout -b tmp // new一个临时分支
2. git add 當前工作區中未保存的文件
3. git commit -m “” // 提交当前修改
4. git branch -r | grep master //查看远程分支中的master分支
5. git checkout -b master origin/speed/master // 新建本地master分支
6. git pull //拉取最新代码
7. git branch // 查看当前分支,应该是master
8. git checkout tmp //切换到临时分支tmp
9. git log copy the commitID
10. git checkout master // 查询上一次提交的CommitID
11. git cherry-pick commit_id // 回到master分支,cherry-pick
12. git log // 查看log 刚刚的提交已经在master上提交了
13. git push origin master:refs/for/${proj_name}/master // push 到远程就OK了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/466997
推荐阅读
相关标签
  

闽ICP备14008679号