git:fatal: No configured push destination.

An error is reported when the local warehouse code (GIT push) is uploaded to the GIT warehouse:

fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

Solution:
create a new warehouse in Git warehouse and copy the warehouse URL link:

git remote add origin https://github.com/xxxxx/xxxxx.git

git push -u origin master

Similar Posts: