簡體   English   中英

git:使用來自主錯誤的最新更改更新當前開發分支

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

我在這里做了一些關於如何使用 master 的最新更改最好地更新當前分支的搜索。

所以我這樣做了:

git checkout add_game_monsters && git rebase master

這樣做之后,我認為我的分支處於不確定狀態,因為我收到了這個錯誤:

Patch failed at 0001 added game characters 失敗的補丁副本位於:.git/rebase-apply/patch

所以我查看了那個補丁文件,它有 8000 行長。

我也不能再更改 Visual Studio 中的分支,因為它們都是灰色的。

我嘗試重新啟動,但遇到了同樣的問題。

我怎樣才能解決這個問題?

謝謝!

git 狀態顯示:

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

解決這種沖突可能需要的不僅僅是表面上的。 就像在基礎分支上所做的更改(我知道它們是在基礎分支上進行的,因為它們add_game_monsters上被刪除,這是在 rebase 期間進行的)需要移動到另一個文件? 但是如果它們可以像那樣被丟棄,你可以這樣做:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM