git - take everything from a branch regardless of conflicts and other changes -


I'm merge a GIT and I'm merged with this branch and it's merged.

Consider the code of the branch with the code of B. Today with the code today

I want to merge branch B into the branch. If there is a conflict, then I want to take it from Branch B. If any file changes (auto-merge), then I want to ignore them and want to take them again from the branch

There is no way that I can force all the files which have been converted into branches, the contents of the files on the branches

GIT has merged and did not file, so I'm not sure that this is possible. Otherwise I would compare and compare and replace each file. (There are 1000 eekk!)

thanks

edit Thanks for the comment @AndrewC I want to be the opposite of us. From the documentation

Our - It solves in any number, but the result of the merge is always the current branch head. It is used to eliminate the old development history of side branches.

I am at branch A and want to merge with the branch and want to put all the branches in B files. I think that all branches will have to keep a file using our merge strategy

conflict with merge If the branch A files were lasted / cloned / faked, then you have not changed, until you have changed, are you sure that you want to overwrite the branch with B files? Are you

If you want to overwrite, do a git position for merging and conflict, you want everything from Branch B, right? Why not write a little bit to check everything in the GIT status from GT position?

Basically read all file paths from GIT status and:

  git checkout & lt; Branch_b_name & gt; / Path / to / file  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -