canmove, Confirmed users
725
edits
(→Git) |
|||
| Line 146: | Line 146: | ||
== Git == | == Git == | ||
=== Configuration === | |||
If this is your first time using Git, you'll need for perform some one-time configuration: | |||
# Configure your global name and email. These will be used for commit info. | |||
$ git config --global user.name "John Doe" | |||
$ git config --global user.email "johndoe@mozilla.com" | |||
# Enable color output for all commands | |||
$ git config --global color.branch auto | |||
$ git config --global color.diff auto | |||
$ git config --global color.grep auto | |||
$ git config --global color.interactive auto | |||
$ git config --global color.status auto | |||
$ git config --global color.ui auto | |||
# Highlight whitespace | |||
$ git config --global core.whitespace "trailing-space,space-before-tab,tab-in-indent" | |||
# Define your editor for commits, other tools | |||
$ git config --global core.editor vim | |||
= Hacking on ... = | = Hacking on ... = | ||