E
E
Erbol2013-12-27 10:17:29
git
Erbol, 2013-12-27 10:17:29

What is the best way to resolve a conflict like both added in git?

After merging the master into its branch, git status outputs:

# Unmerged paths:
#   (use "git add/rm <file>..." as appropriate to mark resolution)
#
#       both added:         web/img_new

web/img_new is a symlink to a folder in /img_new/
I created this folder in my branch, just as another developer created the same folder.
You need to save the contents of the folders in both branches.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sidorov, 2013-12-27
Kuandykov @Erreke

Rename the directory in one of the branches, merge without conflicts, manually merge two directories into one, commit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question