I\'m working on a project where we have recently started using git. The setup was not perfect from start, so I\'ve set up .gitattributes after people started cloning/working
osse on irc://chat.freenode.net/#git gave me this method, and it works reasonably well:
osse
irc://chat.freenode.net/#git
git rm -r :/ && git checkout HEAD -- :/
This will complain if you have uncommitted changes in your tree.
Seems like there should be a better way though.