P
P
Pavel Vasilinenko2018-12-11 20:07:13
git
Pavel Vasilinenko, 2018-12-11 20:07:13

How to return the Master branch to the current state?

There are 2 branches master and feature-xxx.
The feature branch contains the actual code that needs to be transferred to master. There is no working code in master.
I did


git checkout master
git merge feature

The master still has non-working code.
How do I completely copy the code from feature to master?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
spnq, 2018-12-11
@Paul_Vasko

Go to master
Here is optional. We take the latest changes.
We get up on the last commit of the feature branch
However, after such manipulations, you will have to force push:
git push --force origin master.
When you merged a feature, you just migrated delta changes between master and feature.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question