E
E
Eugene2016-01-21 16:16:47
git
Eugene, 2016-01-21 16:16:47

How to bring one branch into exact correspondence with another?

The repository has (among others) 2 branches, one is a complete mess and the other (master) is clean.
How to bring a branch with a mess into exact correspondence with the master. You can't rebase - there will be conflicts during deployment. I thought about how to make and apply the differences to the master branch, but I could not find the necessary commands.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2016-01-21
@magiota

git checkout bardak
git diff bardak master | git apply

F
FoxInSox, 2016-01-21
@FoxInSox

Kill the mess with the master. Resolve conflicts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question