網(wǎng)站首頁 編程語言 正文
在使用 Android Studio 對源代碼進(jìn)行push到碼云時(shí)可出錯(cuò),報(bào)錯(cuò)如下:
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.
出現(xiàn)錯(cuò)誤的主要原因是oschina中的README.md文件不在本地代碼目錄中
可以通過如下命令進(jìn)行代碼合并【注:pull=fetch+merge]
git pull --rebase origin master
執(zhí)行上面代碼后可以看到本地代碼庫中多了README.md文件
此時(shí)再執(zhí)行語句 git push -u origin master即可完成代碼上傳到oschina
原文鏈接:https://blog.csdn.net/zhao_xin_peng/article/details/79378895
- 上一篇:Gogs遷移
- 下一篇:ubuntu desktop 開啟root賬戶
相關(guān)推薦
- 2023-05-12 Python?pandas?的索引方式?data.loc[],data[][]示例詳解_python
- 2023-01-27 C#實(shí)現(xiàn)拆分合并Word表格中的單元格_C#教程
- 2024-03-24 required a single bean, but 2 were found
- 2022-10-06 C#?獲取本機(jī)IP地址(IPv4和IPv6)_C#教程
- 2022-05-07 以tensorflow庫為例講解Pycharm中如何更新第三方庫_python
- 2022-06-13 nginx?location/區(qū)別詳解_nginx
- 2022-04-18 Python簡單的GUI程序示例詳解_python
- 2022-04-01 helm install Error: timed out waiting for the cond
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支