git push时遇到问题“fatal: No destination configured to push to.”

  作者:zhanhailiang 日期:2014-12-02
[root@~/wade/lua/historyBrowsing]# git push
fatal: No destination configured to push to.

查了下相应手册:

[root@~/wade/lua/historyBrowsing]# git help push

原因是缺少推送的目标地址,解决方法有两种:

1. 添加“目标地址”参数:

[root@~/wade/lua/historyBrowsing]# git push [email protected]:billfeller/historyBrowsing.git
Counting objects: 7, done.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 482 bytes, done.
Total 4 (delta 3), reused 0 (delta 0)
To git@github.com:billfeller/historyBrowsing.git
   e218fec..6f0ca41  HEAD -> master

2. 设置默认参数:

[root@~/wade/lua/historyBrowsing]# git remote add origin [email protected]:billfeller/historyBrowsing.git
[root@~/wade/lua/historyBrowsing]# git push
时间: 2024-08-29 18:55:23

git push时遇到问题“fatal: No destination configured to push to.”的相关文章

git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法

根据网上教程使用git,结果没几步就开始出问题... 就是个简单的git add 看到提示的fatal,下意识的认为很严重,开始以为跟大小写有关,结果试了下还是不行 加上文件的后缀名,搞定. 并且跟大小写无关 建议:各位同学操作时,注意后缀名的问题.操作系统中隐藏了后缀名的话,命令中就不要加:如果没有设置隐藏后缀名,命令中不能丢掉 git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法 原文地址:https://www.cn

git add时遇到类似fatal: Path 'XXX' is in submodule 'XXX'错误提示如何解决?

答:示例如下: fatal: Pathspec 'Vundle.vim/autoload/vundle.vim' is in submodule '.vim/bundle/Vundle.vim' 解决办法: git rm -rf --cached .vim/bundle/Vundle.vim git add时遇到类似fatal: Path 'XXX' is in submodule 'XXX'错误提示如何解决? 原文地址:https://www.cnblogs.com/dakewei/p/108

git bash中避免在push时反复输入用户名和密码

我用的是windows系统,这几天学着使用git时发现每次使用git push时每次都要输入一遍用户名和密码,感觉特烦,特意上网查了下,找到了简化方法.虽然不是原创,但至少算是加了点自己的心得和经验吧,毕竟中间也硌了半天. 首先进入你用户名目录,windows一般是在C:\users\Administrator,此时需要新建一个名为.git-credentials的文件,windows本身不允许直接创建以"."开头的文件/文件夹,需要借助于其他工具,由于后面还是要用git来配置信息,这

解决git Push时请求username和password,而不是ssh-key验证

转载自:https://blog.lowstz.org/posts/2011/11/23/why-git-push-require-username-password-github/ 之前开始用github时是在ubuntu下按着官方的新手指南搞定的.但最近一直在用fedora,所以也想在fedora下用github,配置的时候很顺利,就是在git push的每次都需要输入username和password,而我是配置好公钥登陆的.用ssh -T [email protected] 也是成功用公

git review时出现fatal: ICLA contributor agreement requires current contact information.错误

使用git review时出现错误: fatal: ICLA contributor agreement requires current contact information. Please review your contact information: https://review.openstack.org/#/settings/contact fatal: Could not read from remote repository. Please make sure you have

【转载】Git push时重复输入用户名密码的问题

在windows上使用git来push到github服务器的时候,每次都需要填写用户名/邮箱.密码,很麻烦.最近用hexo写博客,需要频繁地进行博客配置和预览,而每次预览执行hexo deploy都需要输入用户名.密码验证,不胜其烦,今天下决心解决. 尽管github提供了SSH方式进行本地和服务端的链接,可是按照网站说明设置好之后,这个问题仍然得不到解决.尝试了好几次,最终用下面这个方法解决了. 首先添加环境变量. 在用户文件夹如C:\Users\zhangsan下新建一个名为_netrc的文

本地Git仓库和远程仓库的创建和关联及github上传(git push)时出现error: src refspec master does not match any解决办法

github上传项目方法: 在你的电脑上装好git Git Bash Here 本地Git仓库和远程仓库的创建及关联大致流程是: 1.初始化这个本地的文件夹为一个Git可以管理的仓库 git init 注意:Git会自动为我们创建唯一一个master分支我们能够发现在当前目录下多了一个.git的目录,这个目录是Git来跟踪管理版本库的,千万不要手动修改这个目录里面的文件,不然改乱了,就把Git仓库给破坏了. 2.将本地的仓库和远程的仓库进行关联 git remote add origin [em

执行git命令时出现fatal: 'origin' does not appear to be a git repository错误

在执行git pull origin master时出现: fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists 解决方案: git remote add origin [email protec

FW 执行Git命令时出现各种 SSL certificate problem 的解决办法

比如我在windows下用Git clone gitURL 就提示  SSL certificate problem: self signed certificate 这种问题,在windows下出现得频率高些.我估计主要是git本身就是基于linux开发的,在windows上,容易缺失一些环境. 参考了一些文章,解决方法其实就是“直接不管ssl证书的事儿”-_-||| 方法如下: 1.创建临时环境变量: windows上命令行输入: [plain] view plain copy set GI