简体   繁体   中英

How to get rid of Merge Comments in the Master Branch with Git?

I tried merging Develop Branch into master and now getting Errors while Smoke Testing.

This is driving me crazy. Things like

>>>>>>>>>>>>> HEAD

>>>>>>>>>>>>> Develop

AND

=======

are appearing in the code Which are creating a havoc while even deploying.

How do I get rid of these comments and Github headers. My Develop branch is still intact and working fine. The Master branch is driving me merge and pull etc etc to no rescue, Please help. Thanks in advance. Smoke Testing in Smokes.

It's all Javascript btw.

Those are not comments, those are merge conflicts that happened because you tried to merge a part of a file that was edited differently in those two branches.

Since you are using git, you should read a little about it and its merging tool, and fix the file properly before deploying. Try to read about merge conflicts in the git documentation: http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM