Lesson 1 Exercise 2 Git Issues

I followed all the steps from exercise 1 and 2 (lesson 1) up to step 3.3. When I try to create the application, I get this error instead of any options as shown in the course:

[14:45:55] nRF Command Line Tools 10.23.0 are up to date
Command failed: git commit -m "Initial commit for blinky"
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  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 'Robert@LAPTOP-1IRSBTHE.(none)')

This is my first time using Visual Studio Code or any Nordic devices ever, and I have no clue what I did wrong- git was never mentioned in any of the previous steps in the course.

Thanks

Parents
  • I assume the lesson and exercises you are talking about are related to the Nordic Developer Academy.
    Not sure why or how they teach version control in these courses but this issue seems soley related to git.

    As the output reads it wants you to identify yourself, so it can mark you as the author of the commit. This is just how git is supposed to work.
    I enccourage you to read more about this vcs in the link above, if you are interested. Although i am not aware if it is actually necessary
    to learn this tool for completing the courses, since i never did them myself.

    If you just want to continue with the course and can not be bothered to learn another tool at this point in time,
    simply follow the instructions displayed an globally configure a git user.

    git config --global user.email "[email protected]"
    git config --global user.name "robertz"
    
    // Then you can perform your commit
    
    git commit -m "Initial commit for blinky"


    Git will use these credentials to mark the commits you perform as done by this user.

    Hope this may help you.

  • I did not see your answer before posting mine. Thanks for answering.

Reply Children
No Data
Related