首页 > 其他 > 详细

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

时间:2014-12-02 16:37:28      阅读:29129      评论:0      收藏:0      [点我收藏+]
  作者:zhanhailiang 日期:2014-12-02
[root@~/wade/lua/historyBrowsing]# git push
fatal: No destination configured to push to.

查了下相应手册:

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

bubuko.com,布布扣

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

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

[root@~/wade/lua/historyBrowsing]# git push git@github.com: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 git@github.com:billfeller/historyBrowsing.git
[root@~/wade/lua/historyBrowsing]# git push

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

原文:http://blog.csdn.net/billfeller/article/details/41679915

(6)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!