0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Git】fatal: Not a git repository (or any of the parent directories): .gitの解決法

Posted at

こんにちは!安田駿介です!

今回は「fatal: Not a git repository (or any of the parent directories): .gitの解決法」というテーマで解説していきます。

#エラー内容
Gitの初期設定が不備ということです。

#解決策
下記のコードを順番に実行してください。

1.ユーザの登録

$ git config --global user.name "xxxx"
$ git config --global user.email "xxxxxx@gmail.com"

2.gitの初期化

git init

3.git branchで確認

$ git branch
* master
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?