git报错:fatal: No configured push destination.

本地仓库代码(git push)上传git仓库报错:

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仓库创建新的仓库然后复制仓库URL链接:

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

git push -u origin master

原文地址:https://www.cnblogs.com/nayek/p/12238801.html

时间: 2024-08-30 11:40:14

git报错:fatal: No configured push destination.的相关文章

[Linux]Centos git报错fatal: HTTP request failed

在使用git pull.git push.git clone会报类似例如以下的错误: error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/zemo/demo.git/info/refs fatal: HTTP request failed 通常是因为git版本号的问题. 使用例如以下指令查看版本号: # git --version git version

开发错误记录11:git报错?fatal:open?/dev/null?or?dup?failed:?No?such?file?or?directory

今天在自己的的电脑上装了git,没成想运行报错: 重装了几次git ,都不行,电脑上没有装github桌面版; 后来在网上查到了方法,反映这是系统的问题: null是比较特殊的系统文件,它实际上是为操作系统提供一个虚拟设备,这个搜索设备的驱动程序是C:WINDOWS\system32\drivers\Null.sys 解决方案: 以win7为例,右键点击计算机-管理-查看,勾选显示隐藏的设备:  启动null驱动,如下图: 发现启动不上,查看是否有驱动文件存在: C:WINDOWS\system

git报错 fatal:open /dev/null or dup failed: No such file or directory

今天突然发现git无法做任何操作了,报了上面的错,各种百度谷歌都没有得到解决的方案.我重装了git,重启电脑仍然没有解决,开来不是git软件的问题而是系统问题. null是比较特殊的系统文件,它实际上是为操作系统提供一个虚拟设备,这个搜索设备的驱动程序是C:WINDOWS\system32\drivers\null.sys 解决方案: 以win7为例,右键点击计算机-管理-查看,勾选显示隐藏的设备: 点击非即插即用驱动程序 右键点击Null-属性-驱动程序-如果已经启动则点击停止,再点击启动,类

【Git笔记】git报错 fatal: The remote end hung up unexpectedly

git提交报异常,fatal: The remote end hung up unexpectedly 上网找了一下原因,最后这个答案帮了我解决问题了. 1 git config http.postBuffer 524288000 我的问题估计是上传文件太大导致的. 参考原文:http://www.myexception.cn/mobile/1576333.html

git报错:&#39;fatal:remote origin already exists&#39;怎么处理?附上git常用操作以及说明。

git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整理来自廖雪峰大神的<git教程>. 各位童鞋要下载git但是网速不给力的,可以从这里下载:https://pan.baidu.

git报错:&#39;fatal:remote origin already exists

git报错:'fatal:remote origin already exists'怎么处理?附上git常用操作以及说明. git添加远程库的时候有可能出现如下的错误, 怎么解决? 只要两步: 1.先删除 1 $ git remote rm origin 2.再次执行添加就可以了. ----------------------------------------------git常用操作------------------------------------------------ 说明,以下整

git push报错error: failed to push some refs to &#39;[email&#160;protected]:

$ git push -u origin master To [email protected]:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:xxx/xxx.git' hint: Updates were rejected because the remote contains work that you do hint:

eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found

eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found in configuration 如图: 这是因为 在用gui创建分支的时候 config文件没有创建branch 在config文件加上 [branch "xxx"] remote = origin merge = refs/heads/xxx 即可 eclipse git 报错:th

git同步遇到报错“fatal: unable to access &#39;https://github.com/ruanwenwu/newp.git/&#39;: Peer reports incompatible or unsupported protocol version.”

git同步遇到报错"fatal: unable to access 'https://github.com/ruanwenwu/newp.git/': Peer reports incompatible or unsupported protocol version." 网上很多人说是因为git版本需要升级.我将git版本升级到最新, [[email protected] tp5test]# git --version git version 2.16.2 问题却依然存在. 最后: y