Post

Git delete by us

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

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:

1
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.

Comments:

“deleted by us” means it was deleted by “them”? – xaxxon

See this canonical answer for an explanation. In a rebase, “us” becomes the branch against which you are applying the commits, which is when the merge conflict due to the deleted file occurs. – Tim Biegeleisen

This post is licensed under CC BY 4.0 by the author.