---
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
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/Etcd/openmind_etcds3120_04_0018.html
indexId: c78fd5e756f766d875ff9227e2c1cbff8c7fb33d0a60c9a82be747821a3501c874
---
# 编译etcd过程中提示Not a git repository的解决方法

#### 问题现象描述

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


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

Git未初始化。


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

1. 初始化Git。
  1 git init

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