git remote 解决push时出现的问题

459 阅读1分钟

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

解决办法:

  • git add --all
  • git commit -m ""
  • git remote add origin '远程仓库URL'
  • git push -u '远程分支URL'