git develop删除后是否可以checkout到最新origin/develop
伊谢尔伦
伊谢尔伦 2017-05-02 09:41:22
0
2
586

本地develop被污染之后,我删除本地develop,再从远端拉一个最新的develop下来

做法:

  git branch -d develop
  
  git checkout develop
  

这样 在合了本地的develop和fixbug之后,push上了Git库

但是出现了 2天前 别人代码的commit 和我的冲突

请问怎么回事?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
过去多啦不再A梦

Why delete the local develop branch? Isn’t it ok to reset to remote develop?

git reset --hard origin/develop
If there is a conflict, resolve the conflict

漂亮男人

There are a few questions about the description
1. You have deleted the local develop. Why can you still merge it?
2. Conflicts shouldn’t be considered abnormal, right? After all, when you fix the bug, you may modify the same file as someone else modified

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!