android-studio - 将项目从 Android Studio 推送到 GitHub 失败
问题描述
我试图将我的项目从 android studio 推送到 GitHub,但失败了。这是错误:
Can't finish GitHub sharing process
Successfully created project 'BurgerRating' on GitHub, but initial commit failed:
*** 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.
unable to auto-detect email address (got 'valk@DESKTOP-59LAKG3.(none)')
不知道怎么直接把项目放到GitHub上,因为上面说项目有100多个文件。如果我一步一步做,我会错过一些文件。请帮忙!
解决方案
您显示的错误只是告诉您在 git 上没有被识别。它建议您通过
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
您可以先按照该说明进行操作,然后显示接下来会发生什么
推荐阅读
- python - 如何生成具有 V 个可能值的 N 个插槽的所有可能组合?
- docker - Confluent Kafka Connect Docker 容器问题
- javascript - 如果为空值,则提高输入工具提示
- kotlin - 如何将依赖类类型的类似代码减少到父级?
- python - 使用 NLTK/NaiveBayesClassifier,始终在测试数据上获得“正”输出
- c# - 使用带有 libgit2sharp 的 SSH 进行身份验证/通信时遇到问题
- c# - 为 Stripe 付款创建客户时出错
- pytorch - (单层)PyTorch 中的感知器,收敛性差
- opengl - 对 sampler2DArray 的非统一索引是否会导致未定义的行为?
- azure-application-insights - 从分析中排除第三方库