網站首頁 編程語言 正文
當push代碼時,出現如下錯誤:
jinshu@DESKTOP-L5OTKGN MINGW32 /c/jinshu/develop/projects/freamwork (faceIdentify)
$ git push origin faceIdentify
To http://192.168.88.98/project/freamwork.git
! [rejected] faceIdentify -> faceIdentify (fetch first)
error: failed to push some refs to 'http://192.168.88.98/project/freamwork.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
出現該錯誤的原因具體我也不太清楚,也沒有仔細研究,當出現該錯誤時,可以使用git pull命令,然后再按照流程提交一遍即可。
//**先使用git pull 命令**
jinshu@DESKTOP-L5OTKGN MINGW32 /c/jinshu/develop/projects/freamwork (faceIdentify)
$ git pull
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), 9.03 KiB | 1.00 MiB/s, done.
From http://192.168.88.98/project/freamwork
2794f0d..70c25c6 faceIdentify -> origin/faceIdentify
Merge made by the 'recursive' strategy.
face.sql | 532 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 532 insertions(+)
create mode 100644 face.sql
//**重新提交一遍**
jinshu@DESKTOP-L5OTKGN MINGW32 /c/jinshu/develop/projects/freamwork (faceIdentify)
$ git status
On branch faceIdentify
Your branch is ahead of 'origin/faceIdentify' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
jinshu@DESKTOP-L5OTKGN MINGW32 /c/jinshu/develop/projects/freamwork (faceIdentify)
$ git add .
jinshu@DESKTOP-L5OTKGN MINGW32 /c/jinshu/develop/projects/freamwork (faceIdentify)
$ git commit -m "merge"
On branch faceIdentify
Your branch is ahead of 'origin/faceIdentify' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
g
jinshu@DESKTOP-L5OTKGN MINGW32 /c/jinshu/develop/projects/freamwork (faceIdentify)
$ git push -u origin faceIdentify
Enumerating objects: 60, done.
Counting objects: 100% (43/43), done.
Delta compression using up to 4 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (24/24), 2.83 KiB | 723.00 KiB/s, done.
Total 24 (delta 10), reused 0 (delta 0)
To http://192.168.88.98/project/freamwork.git
70c25c6..1cd4207 faceIdentify -> faceIdentify
Branch 'faceIdentify' set up to track remote branch 'faceIdentify' from 'origin'.
原文鏈接:https://blog.csdn.net/weixin_45151960/article/details/109051883
相關推薦
- 2022-12-23 C++中關于getchar()的使用方法_C 語言
- 2022-04-14 Python函數式編程實現登錄注冊功能_python
- 2022-03-09 解決nginx“504?Gateway?Time-out”錯誤_nginx
- 2022-06-26 React?Native?加載H5頁面的實現方法_React
- 2022-09-20 Android開發Retrofit源碼分析_Android
- 2022-05-03 C#面向對象設計原則之組合/聚合復用原則_C#教程
- 2022-04-27 ASP.NET?Core中的策略授權和ABP授權_實用技巧
- 2022-03-14 【錯誤記錄/html】Response to preflight request doesn‘t p
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支