简体   繁体   中英

why my code got messed up after a git push

my code was working fine until I made a git push to a branch.

Now I see, <<<<<<< Updated upstream and >>>>>>> Stashed changes everywhere in my local and branch repo. How do I bring it back or remove those above mentioned

This is probably a merge conflict so you made changes and someone else made changes to the remote branch as well you pulled and then there were conflicts

The only way to fix it and keep the written code is to remove these merge conflicts.

Bascially you have to check every file with such merge conflicts and fix the "errors" by hand.

>>>>>>>>>>>>> these just highlight one of the conflicts <<<<<<<<<<<<<< these are the end of the conflict of one branch.

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