Search code examples
gitsublimetext2

sublime text 2 - git plugin


I bought and installed Sublime text 2 on windows 7 I also installed the Git plugin

Now, I added a file to the staging index and it worked ... git status also works ... git commit on the other hand doesn't:

This is what i get:

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

I do not know how to fix this.

thanks, Rares


Solution

  • You can type those commands in a git-cmd session or a git bash session.

    Git needs to known the author and committer name and email.

    As mentioned in kemayo/sublime-text-git issue 246:

    git config --global user.email "[email protected]"
    git config --global user.name "Your Name"
    

    If you have installed msysgit, you will find a git-cmd.bat or a shortcut to a git bash session, in which you will be able to type those git config commands.

    But, you also need to make sure that the Git plugin known where your HOME is, HOME being not set by default by Windows.