android-studiogithub

Push Project To GitHub From Android Studio Failed


I tried to push my project from android studio to GitHub but it failed. Here is the error:

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)')

I don't know how to directly put a project on GitHub because it says that the project is more than 100 files. If I do it step by step, I miss some files. Please help!


Solution

  • The error you are showing is simply telling that you are not identified on your git. It suggested you resolve by the

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

    you can just follow that instruction first and show what happens next