I am facing this issue because of my own negligence.
Scenario:
I have two branches master
and branch1
. From start they don't have any .gitignore
file (that is my big fault). Now the status of branch1
is
This branch is 12 commits ahead, 4 commits behind master.
Whenever I pull master
into branch1
, I have conflicts in many files which should be in .gitignore
file (say *.unwantedFileExtensions
). I tried my best to solve the conflicts but when ever I try to build the progam it throws exceptions/errors.
After that I explicitly added .gitignore
file into both branches to ignore all *.unwantedFileExtensions
files, still I face same conflict files while merging.
I am pretty much stuck here. Do anyone know how to solve this issue ?