File cleansing

Using the provided git functions instead of the customized ones.