I'm trying to upload a project on Github, but I get this error ???

*** 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 'user@user-  .(none)') 

How to be? In the first work with git.

  • and what is written in error? - JVic
  • 2
    In addition to the answers, therefore a comment. Configure key authorization and forget about logins / passwords. - PinkTux

3 answers 3

Git clearly hints at what you need to do. He also says that he tried to determine for himself, but failed.

Most likely you need such commands.

 git config --global user.email "elik@example.com" git config --global user.name "elik" 

(email of course write).

If you are doing this at work, it is better to write your full name and work mail.

 git config --global user.email "vpupkin@company.com" git config --global user.name "Vasiliy Pupkin" 
  • and I did without the Command Line (I tried through the studio), it would be a pity to work with the command line anyway ) Thank you - elik
  • five
    In most cases, the command line is all about. And guts, however good they are, often cannot solve simple problems. - KoVadim
  • yes all have to agree with you - elik
  • @elik Git Extensions can edit these settings via GUI - Pavel Mayorov

To solve the problem you need:

  git config --global user.email "you@gmail.com" git config --global user.name "Vasua Pupkin" 

Then:

 git remote add origin https://github.com/vasilukwolf/Random-Quote-Machine git checkout -b 1-UserStroty-bla-bla git add . git commit -m "1-Task-bla-bla" git checkout master git merge 1-UserStroty-bla-bla git push origin master 

If something is suddenly wrong after a commit, and they forgot:

 git checkout -- * 

If zakomitili and blunted:

 git reset HEAD 

An example of a normal workflow: enter image description here

  • one
    Пример нормального workflow more confusing than it explains. From somewhere came the Dev, the user story and the epic. And a man sees git for the first time, it's too early for him. ) - Nick Volynkin
  • Dev is designed to test and resolve conflicts. Epic speaks for itself. For example, the migration of the product to a new technology. UserStory - a user has come to you, something is not very convenient. This is not a bug and not a mistake, but you have to do it, otherwise a person spends time. There are also Task and Test. I think this is enough for normal git work, if you add git commit --addend. - Basil Jimmy
  • one
    Epic говорит сам за себя - only for those who work on agile and apply epics to their work. So far from all. Same with userstory. - Nick Volynkin
  • one
    Everything after the first block of code has nothing to do with the question. The desire to write a kind of survival guide is understandable, but you are too far from the original question and as a result tell a bunch of completely irrelevant information. - D-side

If you are using GitHub Desktop, go to File -> Options -> Git. Check that everything is filled out correctly and click Save. Must earn.