Remove trailing .git