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?

githubのコミット時に警告が出たので備忘録

Posted at

起きたこと

git commitを実行したときに
fatal: unable to auto-detect email address (got '自分のデバイス名.(none)')
と出た

対処方法

Gitがコミットに使用するメールアドレスと名前を設定する
以下コマンド

# グローバル設定(すべてのリポジトリに適用)
git config --global user.email "あなたのメールアドレス@example.com"
git config --global user.name "あなたの名前"

# ローカル設定(現在のリポジトリにのみ適用)
git config user.email "あなたのメールアドレス@example.com"
git config user.name "あなたの名前"
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?