canmove, Confirmed users
409
edits
(basic Git info) |
|||
Line 124: | Line 124: | ||
hg push | hg push | ||
= Using Git = | |||
Various projects exist as Git repositories instead of Mercurial repositories. Even when projects are officially hosted in Mercurial, Git mirrors are maintained. | |||
The Services team maintains a GitHub organization at https://github.com/mozilla-services. A mirror of services-central can be found at https://github.com/mozilla-services/services-central. | |||
== Configuring Git == | |||
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 | |||
= Repositories = | = Repositories = |