Skip to content

Instantly share code, notes, and snippets.

@rwest
Created February 16, 2010 17:59
Show Gist options
  • Save rwest/305742 to your computer and use it in GitHub Desktop.
Save rwest/305742 to your computer and use it in GitHub Desktop.
put this in .bash_profile to set up git variables
# set up git author details for commits and merges
export GIT_AUTHOR_NAME="Richard West"
export GIT_AUTHOR_EMAIL=rwest@mit.edu
export GIT_COMMITTER_NAME="Richard West"
export GIT_COMMITTER_EMAIL=rwest@mit.edu
# change the default editor from vi to emacs
export GIT_EDITOR=emacs # doesn't work with the old version of git on monch
export VISUAL=emacs # a more generic system-wide editor command that does the trick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment