首页 > 其他 > 详细

Git手册 - 高级特性

时间:2017-06-15 16:18:34      阅读:297      评论:0      收藏:0      [点我收藏+]

一)更改origin仓库


git clone old-repo.git
cd old-repo
git remote rm origin
git remote add origin new-repo.git(url)
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
git push origin master   //if should pull first and fail to merge, run > git pull origin master --allow-unrelated-histories

二)

Git手册 - 高级特性

原文:http://taoismli.blog.51cto.com/7443655/1936962

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