DEV Community

Discussion on: [Git] How do I merge featured branch into master, when master have already be edited (e.g. bug fixes)

Collapse
 
jessekphillips profile image
Jesse Phillips

I want to totally replace master, actually.

This is a not recommended action, but it is possible. Github probability prevents force push to master (gitlab does)

If you just want feature added to master, the a merge request will suffice if there are no conflicts (do not avoid conflicts).

If there is conflict there are two options.

1 rebase onto master
2 Merge master into feature branch