title: Code merging large project using git involving CRLF
body: <p>We have a large ASP.Net solution, consisting of 96 projects, 2k+ files. Recently we needed to do a major 3rd party dll update which requires quite a bit of code change across the board and we also took the opportunity to clean up references of every project to reduce the build time. All our code reside in TFS2010. We use VS2010 for all our work. For this exercise, we decided to try out git, since it's well known for branching and merging. It's really painful for us to branch and merge in TFS. And since this has no feature change, so we decided no to do a release branch like usual.</p>
  
  <p>We started out by taking our latest code and created a new git repo and started our code change from there, while our existing team continue to use TFS for production bug fixes. Now it comes to the time to merge. We resorted to manual merging and finding it too time consuming and confusing. So we created a branch in our git repo called 'tfs' and wrote a script to checkout version by version of TFS changeset since the branching and commit into our git repo. On the first commit into tfs, we realized we have <code>autocrlf</code> turned on so we switch it off and redo the commit. (Now we just realized that might be a big mistake, the master branch are all in <code>lf</code>). All subsequent commit into <code>tfs</code> branch is with <code>crlf</code>. </p>
  
  <p>Now when we try to do a <code>git merge</code> from both end of the branch, the conflict are display in 2 big chunk instead of lines of changes which makes merging even more difficult. What should we do to make use of git's playback feature of merging for our current situation? </p>
  
  <p>Please let me if further clarification is required so make this clearer. I've also read about <a href="https://stackoverflow.com/questions/7187189/how-to-repair-crlf-in-git-repository-to-avoid-merge-conflicts">How to repair CRLF in GIT repository to avoid merge conflicts</a>, though any further recommendation for our merge workflow would be very helpful.</p>
  
  <p>Thank you in advance</p>
  
  <p>EDIT: Thanks guys, I end up fixing the CRLF by creating a new branch <code>tfs_crlf</code> with <code>autocrlf=input</code> (I'm using a linux machine) then checkout each of <code>tfs</code> commit and copy the files over to <code>tfs_crlf</code> and commit with the same commend. I scripted the whole thing and now merging and conflict files are showing up as expected</p>