Always keep a beginner's mind, don't forget the begin|

Dancing-Pierre

园龄:1年10个月粉丝:3关注:0

解决 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 中国大陆许可协议进行许可。

posted @   Dancing-Pierre  阅读(479)  评论(0编辑  收藏  举报  
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起