$ git push fatal: No configured

2020-06-26  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读