Here is another piece of common git commands I keep forgetting. I think the reason I keep running into these issues is that I keep switching between Git and Mercurial for certain projects.

Add your username and email to the global git ==version 1.9.2== config:

>>> git config --global user.name "Your username"

>>> git config --global email "Your email address"

Specify a default editor after you run git commit:

>>> git config --global core-editor your-editor-name>

January 1, 2013


Previous post
Emotional Refactor When it comes to learning concepts and then coding my way to a solution or implementation, I feel this weight of sadness when I have to wipe the
Next post
Git Stop Tracking a Directory or file Another gem I keep forgetting; stop tracking a file/directory in git without deleting it. git rm -r --cached <directory> or git rm --cached <file>