解决 git 问题:fatal: not a git repository (or any of the parent directories): .git
@[TOC](解决 git 问题:fatal: not a git repository (or any of the parent directories): .git)
1、出现
今天使用 git 增加新的远程主机的时候,发现报下面这个错:fatal: not a git repository (or any of the parent directories): .git
,如图:
提示说没有 .git 这样一个目录
2、解决办法
在命令行输入 git init
然后回车就好了
本文作者:Dancing-Pierre
本文链接:https://www.cnblogs.com/wyc-1009/p/17548010.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步