Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are .rej files which are created during merge

Tags:

I was merging master branch into new branch, there are some .rej files are created.

I took a pool of master branch into new branch I got conflicts which I've resolved but there are some .rej files.

Can you please help me to know about the .rej files and what am I suppose to do with those files.

like image 936
GajanaN Chalke Avatar asked Jan 04 '16 06:01

GajanaN Chalke


1 Answers

.rej files are rejected files (usually hunks patches but not only).

When ever you get those files after merge you will manually have to edit them, fix them and then apply them back.

You can read here some more about it and what is it

.rej file

diff a.txt    (rejected hunks) .... 

Fix it manually and then apply the .rej files like a regular patch.

manually merge the change from *.rej into the required file and remove the *.rej file.

Another very usefully article addressing this can be found here.

like image 146
CodeWizard Avatar answered Oct 14 '22 22:10

CodeWizard