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

#### 问题现象描述

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


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

Git未初始化。


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

1. 初始化Git。
  1 git init

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