failed to push some refs to 'https://gitee.com/ftl_663/java-shop.git'
1、git init
2、git add .
3、git commit -m "init"
4、git remote add origin https://gitee.com/ftl_663/java-shop.git(远程仓库地址)
5、git push -u origin master
提示 failed to push some refs to 'https://gitee.com/ftl_663/java-shop.git'
从网上查到
git pull --rebase origin master
执行语句 git push -u origin master 即可完成代码上传到github
但是还不行
最后强制上传才可以
git push -u -f origin master
创建分支 git checkout -b v1.0 origin/master
上传分支 git push origin HEAD -u

failed to push some refs to 'https://gitee.com/ftl_663/java-shop.git'的更多相关文章
- 码云 VS首次提交代码报错:failed to push some refs to 'https://gitee.com/Liu_Cabbage/ASP.NET-MVC-QQ-Connect.git'
		
打开命令提示符: 执行合并命令: git pull --rebase origin master 最后总结: 1.多为第一次提交代码,本地和码云仓库不一致,README.md文件不在本地代码目录中 2 ...
 - vue 项目上传到码云,push时error: failed to push some refs to 'https://gitee.com/mawenrou/vue_ht.git'
		
vue 项目上传到码云,push时error: failed to push some refs to 'https://gitee.com/mawenrou/vue_ht.git' 因为之前已经创建 ...
 - git push报错! [rejected]        master -> master (non-fast-forward) error: failed to push some refs to 'https://gitee.com/XXX.git
		
git pull origin master --allow-unrelated-histories //把远程仓库和本地同步,消除差异 git add . git commit -m"X ...
 - error: failed to push some refs to 'https://gitee.com/xxx/xxx'
		
一开始以为是本地版本和线上的差异 果断先直接pull 之后 还是不对,哎 不瞎搞了 搜... 获得消息: git pull --rebase origin master 原来如此:是缺失了文件
 - error: failed to push some refs to 'https://github.com/github账号/learn_git.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caus
		
在使用git 对源代码进行push到gitHub时可能会出错,信息如下 此时很多人会尝试下面的命令把当前分支代码上传到master分支上. $ git push -u origin master ...
 - git 报错:error: failed to push some refs to 'https://github.com/Anderson-An/******.git'(已解决)
		
提交push 报错: $ git push origin masterTo https://github.com/Anderson-An/******.git ! [rejected] master ...
 - error: failed to push some refs to 'https://github.com/username/python.git'
		
解决error: failed to push some refs to 'https://github.com/bluepen/python.git' 当我们在使用git工具上传我们自己的代码时,可 ...
 - 错误:error: failed to push some refs to 'https://github.com/pzq7025/KG.git'的解决办法
		
一.问题在进行[git push orgin master]的时候出现如下错误 ! [rejected] master -> master (non-fast-forward) error: f ...
 - git push ! [rejected]        master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/Operater9/guest' hint: Updates were rejected because the tip of your current bra
		
推送本地代码到github报错 git push报错 ! [rejected] master -> master (non-fast-forward) error: failed to push ...
 
随机推荐
- Python的环境变量设置
			
python安装完成后,它的配置很简单,只需要配置下环境变量就可以了. 具体来讲,就是将python的安装目录加入到系统的path中即可.
 - AngularJS - $index, $event, $log
			
原文: https://thinkster.io/egghead/index-event-log --------------------------------------------------- ...
 - CentOS7 设置系统时间
			
在CentOS 6版本,时间设置有date.hwclock命令, 硬件时钟和系统时钟 (1) 硬件时钟 RTC(Real-Time Clock)或CMOS时钟,一般在主板上靠电池供电,服务器断电后也会 ...
 - js:简单的拖动效果
			
效果演示:https://jsfiddle.net/dwqs/b5ywws9f/embedded/result/ html: <div class="wrap"> &l ...
 - Struts2之struts2标签库了解和使用
			
一.学习案例:通过演示项目了解和使用struts2的标签库. 二.案例分析:演示项目是我当初跟着马士兵老师的视频学习时关于标签的项目,里面都有凝视,大家执行了解下. 在此我仅仅解说下经常使用的标签. ...
 - js 时钟特效
			
时钟特效 CreateTime--2018年2月24日15:11:23 Author:Marydon 实现方式:都是基于HTML5的canvas标签实现的 款式一 借助jQuery插件实现 < ...
 - Hadoop之中的一个:Hadoop的安装部署
			
说到Hadoop不得不说云计算了,我这里大概说说云计算的概念,事实上百度百科里都有,我仅仅是copy过来,好让我的这篇hadoop博客内容不显得那么单调.骨感.云计算近期今年炒的特别火,我也是个刚開始 ...
 - NPOI解析Excel
			
园子的文章: http://www.cnblogs.com/csqb-511612371/category/654604.html 关键就是如何解析Excel表头,特别是合并单元格的..还有对应NPO ...
 - su 和 su- 会影响环境变量
			
大部分Linux发行版的默认账户是普通用户,而更改系统文件或者执行某些命令,需要root身份才能进行,这就需要从当前用户切换到root用户,Linux中切换用户的命令是su或su -,下面就su命令和 ...
 - [RK3288][Android6.0] 关于uboot中logo相关知识点小结【转】
			
本文转载自:http://blog.csdn.net/kris_fei/article/details/76256224 Platform: Rockchip OS: Android 6.0 Kern ...