clean remote repo code