7
- The branch
devis automatically merged to themaster; this, for his time, there’s a deploy automatic application. - The branch
devhas some changes ahead of the branchmasterand will be disposed of. - The branch
featureincorrectly left the workflow and was created to
from themaster.
What I need to do is:
Delete the changes from
devand leave it as the master- Merge the
featureindev
- Merge the
I thought to "reset" the dev, erasing and creating it from the masterbut I don’t know if this is the solution to these cases.
@Edit
After effecting the reset, commit and push i get the following error because my branch dev has changes saved in remote.
hint: Updates Were Rejected because the tip of your Current branch is Behind
hint: its remote Counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing Again.
hint: See the 'Noteabout fast-forwards' in 'git push --help' for Details.

There is code in "dev" and/or "Features" that needs to be used?
– Sergio
The code in the branch
featuresshould remain, @Sergio– Marcelo de Andrade
If you just want to "go back to" with Features you could do
git reset --hard masterwhen you’re in the branchdevand making agit fetch masterif it is remote to be updated in memory. So delete commits fromdevwhich equals the master, and thefeaturesis 2 commits ahead of thedevand ofmaster.– Sergio
Is the code in dev really disposable? da para fazer também um
rebaseinfeatureindevso you lose nothing.– gmsantos
Yes, the commits of
devahead of themasterare disposable. @gmsantos– Marcelo de Andrade
@Sergio, I edited the issue with a forgotten detail about the branch
dev– Marcelo de Andrade
your central repository is Bare?
– zwitterion
No, @zwitterion
– Marcelo de Andrade
That’s what I figured. That’s why you’re getting these error messages when you try to update between environments.
– zwitterion