I've created a project new project in Android Studio and I want to add it to an existing GitHub repository which is currently empty.
I have tried the answer from this question: Replace GitHub repository with a new Android Studio project while preserving old commits
but once I get to the final git push
I get an error saying fatal: No configured push destination.
I have also tried https://github.community/t5/How-to-use-Git-and-GitHub/How-to-link-an-existing-Android-Studio-Project-to-an-existing/td-p/1946 but this uploads the project to the wrong GitHub account. I have two GitHub accounts which I think was the problem for this solution and I have since logged out of the account I don't need.
Are there any other ways to connect to an existing GitHub repository?