Repository::detach method initial commit