GIT: How dangerous is “deleted by us” conflict?

后端 未结 1 1490
情深已故
情深已故 2021-02-01 15:15

A few days ago I made a new branch called \"new_branch\" based on \"master\". While I worked on my \"new_branch\" with file \"file.php\", a second developer on his branch delete

1条回答
  •  离开以前
    2021-02-01 15:38

    The message deleted by us: app/file.php means precisely what you described, namely that someone deleted this file in the master branch on which you are rebasing new_branch.

    Assuming that the delete has not yet been staged and you want to keep this file, then you should git add the file to mark it that it should be kept:

    git add app/file.php
    

    Then, resolve all other merge conflicts and do git rebase --continue

    Note that if you wanted to accept the delete you would do git rm instead.

    0 讨论(0)
提交回复
热议问题