---
title: 编译etcd过程中提示Not a git repository的解决方法
description: 编译etcd过程中提示“Not a git repository”。
url: "https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/Etcd/openmind_etcds3120_04_0018.html"
---

# 编译etcd过程中提示Not a git repository的解决方法

#### 问题现象描述

编译etcd过程中提示“Not a git repository”。


#### 关键过程、根本原因分析

Git未初始化。


#### 结论、解决方案及效果

1. 初始化Git。
  1 git init

2. 重新编译etcd。
  1 ./build
