git - “与您的容器共享 Git 凭据”不起作用
问题描述
我做了什么
- 全局设置 git 配置。
(local) $ git config --global user.email "you@example.com"
(local) $ git config --global user.name "Your Name"
远程容器:重建容器
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
解决方案
推荐阅读
- android - 如何使用 USB 声卡在 Windows 10 上启用 android 模拟器声音?
- javascript - 在观看视频之前尝试锁定注册
- python - 执行“nosetests cvxpy”MacOS 时出现“logsumexp”错误
- javascript - 在 WebSocket 事件上通过代理对象更新 Vue 数据
- c++ - BLE api将负温度转换为正温度
- python - 使用 Git Bash 的 Docker 的 Python 调用任务在 Windows 系统上不起作用
- pandas - Plotly - 来自指定蜡烛的 add_hline
- sql - 显示一个表中在另一个表上出现次数最多的记录
- amp-html - 在 AMP 页面中使用 href="#" 和 on="tap.nav-about.toggleClass(class='active')" 锚定会导致页面在 URL 中使用 # 重新加载
- django - Django - 使用 pk 删除视图。没有 Posty 匹配给定的查询