網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
error: failed to push some refs to 'git@gitlab.xxx.com:xxx/xxx.git
作者:Morris_ 更新時(shí)間: 2022-04-12 編程語(yǔ)言新建gitLabe倉(cāng)庫(kù),提交報(bào)錯(cuò):error: failed to push some refs to ‘git@gitlab.xxx.com:xxx/xxx.git’
報(bào)錯(cuò)信息:
error: failed to push some refs to 'git@gitlab.xxx.com:xxx/xxx.git
問題過程:
$ touch README.md
$ git add README.md
The following paths are ignored by one of your .gitignore files:
README.md
Use -f if you really want to add them.
mengxiang:VhallModuleUI_demo_iOS vhall$ git commit -m “add README”
On branch master
Initial commit
nothing to commit
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to ‘git@gitlab.xxx.com:xxx/xxx.git’
$ git add README.md
The following paths are ignored by one of your .gitignore files:
README.md
Use -f if you really want to add them.
$ git status
On branch master
No commits yet
Changes to be committed:
(use “git rm --cached …” to unstage)
new file: README.md
git add README.md
git commit -m “add README”
git push -u origin master
原因:README文件被忽略了,沒辦法被跟蹤,所以添加不上導(dǎo)致的。
原文鏈接:https://blog.csdn.net/Morris_/article/details/103145025
相關(guān)推薦
- 2023-03-28 通知監(jiān)控NotificationListenerService?onNotificationPost
- 2022-11-07 Pytest?fixture及conftest相關(guān)詳解_python
- 2022-05-22 部署ASP.NET?Core程序到Windows系統(tǒng)_基礎(chǔ)應(yīng)用
- 2022-10-23 C#使用Lazy<T>實(shí)現(xiàn)對(duì)客戶訂單的延遲加載_C#教程
- 2023-01-13 Pytorch中關(guān)于BatchNorm2d的參數(shù)解釋_python
- 2022-07-19 macOS Docker 內(nèi)存 CPU 占用過高,監(jiān)控到 com.Docker.hyperkit 進(jìn)
- 2022-06-08 Spring Cloud Nacos NacosWatch
- 2023-01-23 C#實(shí)現(xiàn)懸浮窗口的方法詳解_C#教程
- 最近更新
-
- 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)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支