首页 > 解决方案 > “与您的容器共享 Git 凭据”不起作用

问题描述

我做了什么

  1. 全局设置 git 配置。
(local) $ git config --global user.email "you@example.com"
(local) $ git config --global user.name "Your Name"
  1. 远程容器:重建容器

  2. Git 提交

(Remote-Container) $ git commit -m hogehoge

结果

*** 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.

fatal: unable to auto-detect email address (got 'root@aaaaaaaaaaa.(none)')

参考

https://code.visualstudio.com/docs/remote/containers#_sharing-git-credentials-with-your-container

标签: gitvisual-studio-code

解决方案


推荐阅读