vscode your repository has no remotes configured to publish to code example
Example: your repository has no remotes configured to push to
git remote add origin https://github.com/user/repo.git
git remote add origin https://github.com/user/repo.git