emory-courses / dsa-java

Data Structures and Algorithms in Java
https://emory.gitbook.io/dsa-java/
42 stars 55 forks source link

[QZ0] Git on Windows / Solution for "Please tell me who you are" #3

Closed NuntuPu closed 4 years ago

NuntuPu commented 4 years ago

For Windows users who don't have Git installed, you can download it here: https://git-scm.com/download/win

If the following error comes up, uun the commands below in the IntelliJ terminal and then commit and push.

Successfully created project 'dsa-java' 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.
lujiaying commented 4 years ago

According to the log you provide, it seems that github setup need the information of your account information.

Could you try to use the window terminal, and execute the above commands under its instruction?

NuntuPu commented 4 years ago

I did. I posted this for others who might run into the same problem.

jdchoi77 commented 4 years ago

@ananthupucha thank you very much posting; I'm adding this content to the book chapter.

lujiaying commented 4 years ago

I did. I posted this for others who might run into the same problem.

Great. Thank you for sharing!

Sorry I did not realize it.

jdchoi77 commented 4 years ago

This is now added to the book chapter: https://emory.gitbook.io/dsa-java/getting-started/environment-setup#git-windows-only

liamsgordon commented 4 years ago

@jdchoi77 I am having this issue on mac, do I need to connect my email to git?

lujiaying commented 4 years ago

For Windows users who don't have Git installed, you can download it here: https://git-scm.com/download/win

If the following error comes up, uun the commands below in the IntelliJ terminal and then commit and push.

Successfully created project 'dsa-java' 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.

@liamsgordon please follow the similar process to set up your GitHub account in your laptop. Otherwise, git cant not push your local repo into remote repo.