码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-12-02 16:40:06      阅读:8093      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   io   ar   color   os   sp   

  作者: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.”

标签:des   style   blog   http   io   ar   color   os   sp   

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

(2)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!