remove existing git repository and add new repo code example Example: clone and remove existing git repository git rm -rf git