網(wǎng)站首頁 編程語言 正文
git 提交到遠(yuǎn)程倉庫 報(bào)錯 error: failed to push some refs to ‘https://xxxxxx.git‘
作者:一只程序猿小白 更新時間: 2022-04-12 編程語言git 學(xué)習(xí)地址
參考鏈接
報(bào)錯如下
error: failed to push some refs to 'https://github.com/GDDXZ/RobotDenso.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.
解決方法:
1、git add . //添加文件到本地倉庫
2、git commit -m "描述信息" //添加文件描述信息
3、git pull origin master // 更新本地版本庫
4、git push -u origin master //把本地倉庫推送至遠(yuǎn)程倉庫
原文鏈接:https://blog.csdn.net/qq_42540989/article/details/118720463
相關(guān)推薦
- 2023-02-09 go?slice?擴(kuò)容實(shí)現(xiàn)原理源碼解析_Golang
- 2023-02-12 python語音信號處理詳細(xì)教程_python
- 2022-08-17 create-react-app常用自定義配置教程示例_React
- 2022-11-05 python類別數(shù)據(jù)數(shù)字化LabelEncoder?VS?OneHotEncoder區(qū)別_pytho
- 2022-11-30 Golang底層原理解析String使用實(shí)例_Golang
- 2022-12-22 Go語言學(xué)習(xí)之接口使用的示例詳解_Golang
- 2022-08-06 Golang使用Consul詳解_Golang
- 2023-02-02 Nginx?error_page自定義錯誤頁面設(shè)置過程_nginx
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- 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錯誤: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)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支