When working with Git there are 3 main areas (see here)
Your files can be in 4 different states:
First, you want to set a name and email address for yourself. These are used every time you make a commit, to identify who made the commit. You can do this with the lines:
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
Next you will want to set your editor, so that git knows what program to use. This would be done with a line like:
git config --global core.editor "/usr/bin/subl -n -w"
of course the path will be different depending on what editor you want to use; the above line is for sublime text. For vi you would do instead "/usr/bin/vi"
, for emacs you would do "/usr/bin/emacs"
You can verify your settings with git config --list
.