首页 > 其他分享 >git - 报错信息汇总

git - 报错信息汇总

时间:2023-03-10 15:34:37浏览次数:54  
标签:origin main git 汇总 报错 push fatal

使用过程中遇到的报错信息记录...

$ git add readme.md

fatal: not a git repository (or any of the parent directories)
# Git命令必须在Git仓库目录内执行(git init除外),在仓库目录外执行是没有意义的

fatal: pathspec 'readme.md' did not match any files
# 添加某个文件时,该文件必须在当前目录下存在
# 用 ls 或者 dir 命令查看当前目录的文件:
# 1. 文件是否存在
# 2. 是否写错了文件名

$ git push origin main
error: failed to push some refs to 'https://github.com/abeelan/abeelan.github.io.git'

# 原因,远程仓库有本地未同步的文件
$ git pull --rebase origin main
# 重新提交即可
$ git push origin main

remote: You are not allowed to push code to this project.
fatal: unable to access 'https://gitlab.joyame.com/test/sixdu_u2.git/': The requested URL returned error: 403

gitlab 提交一直提示权限不够,更新权限到主程序员即可。

On branch master
Changes not staged for commit:

推送不到远程仓库,提示该信息。

解决:git commit -am "message",添加一个 -a 参数,表示新增。

标签:origin,main,git,汇总,报错,push,fatal
From: https://www.cnblogs.com/abeelan/p/17203506.html

相关文章

  • Git使用系列03-->Git仓库创建
     前言只要不放下努力和追求,小草也有点缀春天的价值。学习技术真的不能断篇~一、git工作原理&流程1.1git工作流程图示如下:Workspace:工作区Index/Stage:暂存区Repositor......
  • Appium - Appium server 与 weditor 都需要用到 uiautomator,启动报错
    启动appiumserver后,再次启动weditor连接设备报错[E22121618:20:07web:2162]500GET/api/v1/devices/android%3Aemulator-5554/screenshot(::1)2133.77ms解......
  • Python - allure 报告使用汇总
    使用pytest做自动化测试过程中,关于allure报告的使用方法汇总pythonallure包使用allure命令行工具生成测试报告不启动服务$alluregenerate{allure_result}......
  • springboot 全局 Date参数接收 String格式 转换异常报错
    JSONparseerror:Cannotdeserializevalueoftype`java.util.Date`fromString\"2023-03-1010:00:00\":notavalidrepresentation(error:FailedtoparseDa......
  • Python - pip 报错记录
    #安装包出现错误$pipinstall-rrequirements.txt-ihttp://pypi.douban.com/simple/ERROR:Couldnotfindaversionthatsatisfiestherequirementpbr(from......
  • sdkconfig报错
    2023-03-0910:45:22问题描述:打开软件Espressif-IDE,编译示例blink通过,打开sdkconfig报错,如下图。解决方法:卸载干净,重新安装最新版本5.0.1  控制面板卸载ESP-IDFTo......
  • Git配置ssh登录远程仓库
    一、在客户端生成密钥#-t指定密钥类型#-f指定生成密钥的文件名#-C注释,一般是填写用户名ssh-keygen-trsa-C"xxx"-fC:\Users\Administrator\.ssh\test二、......
  • 【812】github markdown, resize image
    Ref:HowtochangeimagesizeinMarkdownRef:MarkdownCheatsheet <imgsrc="https://github.com/epiwatch/ews-gis/blob/develop/analysis/redflag/StaticHotspot......
  • git提交规范 (git-cz)
    1.安装两个npm库npmi-ggit-cznpmi-gcommitizen2.使用规范1.提交修改的文件至本地gitadd.2.输入cz规则命令gitcz3.选择本次提交的大致操作feat:......
  • 如何解决"代码依赖分析,可能会导致对应文件无法加载"的引用报错问题
    一、问题现象:uni-app开发小程序微信开发工具报:Error:xxx.js 已被代码依赖分析忽略,无法被其他模块引用。你可根据控制台中的【代码依赖分析】告警信息修改代码,或关闭......