In order to drop the current git repository a create a new one you need to: Go to the project’s directory: cd PROJECT_DIRECTORY Remove all the git specific files: rm -rf $(find . -name “.git*”) Initialize a new git repository: git init This doesn’t remove your project’s files, only git configs

As the error message indicates, there is already a remote configured with the same name. So you can either add the new remote with a different name or update the existing one if you don’t need it: To add a new remote, called for example github instead of origin (which obviously already exists in your system), do the following: […]