首页 > 解决方案 > 将项目从 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多个文件。如果我一步一步做,我会错过一些文件。请帮忙!

标签: android-studiogithub

解决方案


您显示的错误只是告诉您在 git 上没有被识别。它建议您通过

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

您可以先按照该说明进行操作,然后显示接下来会发生什么


推荐阅读