git push -f
2015-12-24 13:32
162 查看
有的时候使用GIT工作时,会遇到一下这种问题,
Pushing to git@github.com:519ebayproject/519ebayproject.git To git@github.com:519ebayproject/519ebayproject.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:519ebayproject/519ebayproject.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我遇到造成这个问题的原因,一般是因为执行了git reset命令,版本回退后没有恢复,造成本地仓库的提交版本号落后于远端仓库的提交版本号。
可以执行 git push -f命令去强制提交
相关文章推荐
- java开发俄罗斯方块学习笔记 Day-8 配置
- Core Data
- invalid bound statement (not found)
- Excel图表-"DNA"图
- [Machine Learning] Neural Network
- 查看分区表使用的partition scheme 和 partition function
- 套接字是什么?
- mfc函数---CFileDialog的用法
- /bin/bash^M: bad interpreter: No such file or dire
- 什么是端口?
- 如何修改drawabletop图片的文件大小
- iOS 硬件授权检测:定位服务、通讯录、日历、提醒事项、照片、蓝牙共享、麦克风、相机等
- Python_openpyxl处理Excel表格
- 2015-12-24
- 使用新版Android Studio检测内存泄露和性能
- 阿里云Centos6.6安装配置docker
- 使用新版Android Studio检测内存泄露和性能
- 第四章:面向对象(上)
- 怎样使用jquery刷新验证码图片
- C——联合体(共同体)总结