paolo@bimodesign.com | +34 608 61 64 10

Unclassifiable

        

Git - Tell who you are

To init a repository, after tipying this pull command

git pull origin master

it will show this message

20:11:28: *** Please tell me who you are.

Run

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

The correct pratice is will be

git init
git config user.name "someone"
git config user.email "someone@someplace.com"
git add *
git commit -m "some init msg"

But for updating a repo this solution is better

git fetch
git reset --hard origin/master

This will destroy any uncommitted local changes / commits, and will leave your HEAD pointing to a commit (not a branch).