美文网首页
$ git push fatal: No configured

$ git push fatal: No configured

作者: 程序员小杰 | 来源:发表于2020-06-26 13:51 被阅读0次

今天在git push的时候出现了一些异常

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

在push之前输入
git remote add origin '远程仓库url'

git remote add origin https://gitee.com/gongjienianq/mybatis-plus.git

然后:
git push -u origin 对应远程分支名

git push -u origin master

下一次就不用那么麻烦了,直接:

git add --all
git commit -m "信息"
git push

相关文章

网友评论

      本文标题:$ git push fatal: No configured

      本文链接:https://www.haomeiwen.com/subject/wotufktx.html