赞
踩
目录
用git推送时,报错:error: failed to push some refs to '远程仓库地址'
那么在创建仓库的同时,就会做一次初始提交。
此时本地和远程两端都有内容,但是没有联系,就无法直接推送。
1、先将新创建的远程仓库拉取到本地
git pull --rebase origin master
2、再把本地内容推送到远程仓库
git push -u origin master
成功!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。