We just converted a Subversion repository to a Git repository using Atlassian Stash's Import Subversion tool. For the most part is seems to have worked though the .gitattributes it generated seem to leave much to be desired.
It created a file with 7503 entries all with their text diffs unset, even for text files. This shear number of entries was a result of each file being explicitly listed rather than using pattern matching.
To fix this I created a local non-tracking branch off of master
called add-gitattributes
. Within here I modified the default .gitattributes file so it looks like this: https://gist.github.com/anonymous/6049144 and committed the changes to add-gitattributes
.
I am now in the process of going through the process of normalizing line endings in our repository as described in how-to-normalize-working-tree-line-endings-in-git. A lot of files (5000+) are modified according git status
, as expected.
However, branched from master are a dozen or so branches, some branches have branches. How do I normalize the line endings of all of these branches? Can I just merge my git-attributes
branch into master and update (merge) the other branches? What about new files that were added in the other branches, how do they get normalized? How would I address conflicts if there were any?