I have branch "develop_refactor", base on "develop" branch. In "develop_refactor", I deleted some file in "develop_refactor". Sometimes, I merge from "develop" to "develop_refactor" to update newest code from "develop". But deleted file is come back. I have to delete again. How can I prevent it return ?
Update:
For that reason, the proper way to keep a branch updated is through rebasing.
$ git rebase develop
This will replay all of develop_refactor's commits on top of develop's latest commits - thereby making sure the file is deleted every time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With