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

修改远程库

时间:2019-04-28 12:51:13      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:origin   use   --   修改   git push   ups   xxx   stream   branch   

$ git remote

$ git remote rm origin

$ git remote add origin git@xxx.git

$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin master

修改远程库

标签:origin   use   --   修改   git push   ups   xxx   stream   branch   

原文地址:https://www.cnblogs.com/mzrs/p/10783178.html

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