Tag Archives: No configured push destination

Git fatal: No configured push destination. Either specify the URL from the command-line or co

Git downloads its own project to local:

If you go out to work, you need to pull one of your git remote projects to the local computer;

 git init
 
 git pull https://github.com/TTyb/54qjLogin   (remote repository url)

After the downloaded item is changed, it will be pushed:

$ git push
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>

At this point: git remote usage

This time the first push requires the URL.
 
$ git add --all
$ git commit -m "commit message"
$ git remote add origin 'remote repository url'
$ git push -u origin Corresponds to the remote branch name
 
 
 
Then the next time you don't have to go through all that trouble, just.
 
$ git add --all
$ git commit -m "info"
$ git push