简体   繁体   中英

Merge dev branch into master issue with git

I'm still relatively new to version control and thought I was being clever with the following. I was updating a CodeIgniter site to version 3 from 2. I branched master to CI_UPGRADE_3, did the upgrade the merged back to master.

It broke. The system folders files had the old and new entries in the files. I managed to get back to "pre" merge and am now in my CI_UPGRADE_3 branch wondering how I get back to master with the version on CI_UPGRADE_3.

Any advice would be greatly appreciated.

Thanks

What probably happened is someone else commited things on master while you were working.

No other possibilies: merge master into your branch, fix the conflicts and integrate the other modifications.

Then, when all looks ok on your branch, merge it into master. It should be a fast forward, and thus master will have exactly what you had on your 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