git报错:Reinitialized existing Git repository in ...解决方法

这篇具有很好参考价值的文章主要介绍了git报错:Reinitialized existing Git repository in ...解决方法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、报错截图

初始化git项目时,报错
Reinitialized existing Git repository in…
git报错:Reinitialized existing Git repository in ...解决方法

二、报错原因

该路径中已经存在.git文件了
git报错:Reinitialized existing Git repository in ...解决方法

三、解决方法

可以在当前文件下的控制台中输入 ls-a 查看,有.git 的话,使用 rm -rf .git 删除之后重新初始化就可以了
git报错:Reinitialized existing Git repository in ...解决方法文章来源地址https://www.toymoban.com/news/detail-504343.html

到了这里,关于git报错:Reinitialized existing Git repository in ...解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 报错:git clone 时候出现Please make sure you have the correct access rights and the repository exists.问题解决

    输入 git clone 命令时出现Please make sure you have the correct access rights and the repository exists.错误,出现改问题的原因是git服务器没有存储本地ssh密钥。 解决步骤: 删除 .ssh 文件夹【C:Users(本地用户名).ssh】 中的 known_hosts(直接删除即可) 在下载好的Git中的bin目录下(一般是 C:Program

    2024年02月05日
    浏览(53)
  • IDEA git报错 unsafe repository解决方法

    闲来无事,更新Git,打开IDEA一看统统报错,百度半天大多都会给你说用git config --global --add safe.directory, git添加了新的目录安全限制,只需要打开你的用 管理员身份运行cmd ,跳转到项目目录输入 如果不行尝试 方法1:git config --global --add safe.directory \\\"*\\\" 方法2:文件目录-右键

    2024年02月03日
    浏览(26)
  • git报错fatal: detected dubious ownership in repository at

    在git上执行 git branch fatal: detected dubious ownership in repository at ‘/home/你的用户名/cam/code’ To add an exception for this directory, call: 这个一般是权限不足导致的,有两种解决方式: 1.sudo su进入到root权限 然后输入你的密码 2.这个错误提示表明在您的Git仓库中发现了一个可疑的文件夹,

    2024年01月17日
    浏览(30)
  • 运行报错(三)git bash报错fatal: detected dubious ownership in repository at

    在运行git 命令时,出现报错 “fatal: detected dubious ownership in repository at” 文件夹的所有者和现在的用户不一致 栗子: 文件夹的所有者是root,而当前用户是admin 方法一、 将文件夹的所有者 替换 成admin 将文件夹的所有者 添加 admin sudo -S setfacl -R -m u:switch_git:rwx ./ 方法二、 在g

    2024年02月05日
    浏览(32)
  • Git报错和解决方法fatal: not a git repository,failed to push some refs, Your local changes to ‘file,pathspec

    本人详解 作者:王文峰,参加过 CSDN 2020年度博客之星,《Java王大师王天师》 公众号:JAVA开发王大师,专注于天道酬勤的 Java 开发问题 中国国学、传统文化和代码爱好者的程序人生,期待你的关注和支持!本人外号:神秘小峯 山峯 转载说明:务必注明来源(注明:作者:

    2024年02月05日
    浏览(38)
  • 【git】would clobber existing tag 报错解决

    问题 在用vscode的Git去pull代码的时候git弹窗报错,查看报错日志发现以下内容: 原因 原因可能是删了原有的一个git tag,然后重新创建了一个相同名字的。 解决 强制刷新一下本地的tags

    2024年02月11日
    浏览(22)
  • Git 安全警告修复手册:解决 `fatal: detected dubious ownership in repository at ` 问题 ️

    🌷🍁 博主猫头虎 带您 Go to New World.✨🍁 🦄 博客首页——猫头虎的博客🎐 🐳《面试题大全专栏》 文章图文并茂🦕生动形象🦖简单易学!欢迎大家来踩踩~🌺 🌊 《IDEA开发秘籍专栏》学会IDEA常用操作,工作效率翻倍~💐 🌊 《100天精通Golang(基础入门篇)》学会Golang语言

    2024年02月05日
    浏览(28)
  • 完美解决 git 报错fatal: Not a git repository (or any of the parent directories): .git

    错误提示是找不到.git文件,无法执行git指令,意思是 当前你要提交的文件夹中没有.git这个文件 执行如下命令:

    2024年03月15日
    浏览(32)
  • git pull 报错 could not read from remote repository解决

    git pull 报错 remote: Your account has been blocked. fatal: could not read from remote repository。一般是SSH的形式clone的仓库,权限被更改了。 如下步骤解决: 重新 生成 gitLabKey 并应用:                  step 1:     使用命令 ssh-keygen -t rsa -b 2048 -C \\\"lvl@svtc.com\\\"                  step 2:     出现

    2024年02月16日
    浏览(26)
  • git 报错 error: remote origin already exists 解决与代码上传到远程 gitee 仓库

    当你git clone 别人的代码时,想推送到自己的仓库可能遇到如下问题: error: remote origin already exists.表示远程仓库已存在。 执行以下操作即可: 1、git remote -v 查看项目关联的远程库地址 2、先输入git remote rm origin 删除关联的 origin 的远程库 3、关联自己的仓库 git remote add origin

    2024年02月04日
    浏览(50)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包