VScodeのソース管理でcommitボタンを押すと以下Git: Failed to execute gitを表示されて出力ダイアログに、以下のメッセージが出ます。
git commit --quiet --allow-empty-message --file -
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
エラーメッセージに従いターミナルで以下コマンドを実行しましたが、解決しません。
git config --global user.email "GitLabに登録したメールアドレス"
git config --global user.name "GitLabに登録したユーザー名"
git config --listで確認したところ、User.emailとuser.nameは正しく設定されていました。
ターミナルから以下のコマンドを入力するとGitLabにcommiteすることができましたので、Gitの設定ではなくVScodeの設定に問題があるのではと考えています。VScodeのコミットボタンを使ってコミットしたいのですが、解決方法を教えてもらえないでしょうか?
git init
git add -a
git commit -m "initial"
git remote add origin (GitLabリポジット)
git push -u origin master
環境
Windows10(64bit)に以下をインストール
・VScode1.24.1
・WSL(Ubuntu 18.04)
・Git for windows(git version 2.17.1)
GitLabに登録してプロジェクトを作成した状態です。
回答1件
あなたの回答
tips
プレビュー