網站首頁 編程語言 正文
在使用 Android Studio 對源代碼進行push到碼云時可出錯,報錯如下:
15:55:01.129: [fuwandai] git -c core.quotepath=false push --progress --porcelain origin refs/heads/master:master --set-upstream
error: failed to push some refs to 'https://gitee.com/dapanjimianpaigumian/FirstProject.git'
To https://gitee.com/dapanjimianpaigumian/FirstProject.git
! refs/heads/master:refs/heads/master [rejected] (fetch first)
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
Done
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.
出現錯誤的主要原因是oschina中的README.md文件不在本地代碼目錄中
可以通過如下命令進行代碼合并【注:pull=fetch+merge]
git pull --rebase origin master
執行上面代碼后可以看到本地代碼庫中多了README.md文件
此時再執行語句 git push -u origin master即可完成代碼上傳到oschina
原文鏈接:https://blog.csdn.net/zhao_xin_peng/article/details/79378895
- 上一篇:Gogs遷移
- 下一篇:ubuntu desktop 開啟root賬戶
相關推薦
- 2022-10-29 STDC分割網絡:onnx推理
- 2022-03-28 如何創建VS?Code?擴展插件_相關技巧
- 2022-09-30 Go語言編譯原理之源碼調試_Golang
- 2023-02-01 Python?asyncore?socket客戶端開發基本使用教程_python
- 2022-08-23 Python腳本提取fasta文件單序列信息實現_python
- 2023-01-06 使用find命令快速定位配置文件位置_linux shell
- 2022-04-24 .Net?Core讀取文件時中文亂碼問題的解決方法分享_實用技巧
- 2022-07-17 C++深入講解namespace與string關鍵字的使用_C 語言
- 最近更新
-
- 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同步修改后的遠程分支