简体   繁体   中英

git : update current development branch with latest changes from master error

I did some searching on here on how to best update a current branch with the latest changes from master.

So I did this:

git checkout add_game_monsters && git rebase master

After doing this, I think my branch is in limbo because I got this error:

Patch failed at 0001 added game characters The copy of the patch that failed is found in: .git/rebase-apply/patch

So I looked at that patch file and it's like 8000 lines long.

I also can no longer change branches in Visual Studio because they are all grayed out.

I tried restarting but run into the same issue.

How can I fix this?

Thanks!

A git status shows:

rebase in progress; onto 3cb516c3
You are currently rebasing branch 'add_game_monsters' on '3cb516c3'.
  (fix conflicts and then run "git rebase --continue")


Unmerged paths:
  (use "git reset HEAD <file>..." to unstage)
  (use "git add/rm <file>..." as appropriate to mark resolution)

        deleted by them: ../Database/Tables/dbo.gamers.sql
        deleted by them: ../Database/Tables/dbo.monsters.sql

Solving this conflict might require more than meets the eye. Like the changes that were made on the base branch (I know they were made on the base branch because they were deleted on add_game_monsters , which is them during a rebase) need to be moved to another file? But if they can be discarded just like that, you can just do:

git rm ../Database/Tables/dbo.gamers.sql
git rm ../Database/Tables/dbo.monsters.sql
git rebase --continue

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