Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from groovecoder/master
Browse files Browse the repository at this point in the history
add "Git practices at Mozilla" section
  • Loading branch information
tofumatt committed Oct 4, 2011
2 parents 8aca12b + cd16d9a commit 91ca1dc
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions git.rst
Expand Up @@ -28,6 +28,19 @@ lots of awesome sites for git newbies. We recommend:
developers at GitHub_. developers at GitHub_.
* There's a good `list of git resources on StackOverflow`_. It lists * There's a good `list of git resources on StackOverflow`_. It lists
tools, tutorials, reference guides, etc. A lot of handy stuff there. tools, tutorials, reference guides, etc. A lot of handy stuff there.

Next time you start a project, use ``git``/GitHub_! Working on a
project by yourself is a bit different than working with others, but
start with some basic ``git`` commands (clone, branch, merge) and some of
the more wild stuff (multiple origins, rebasing, etc.) will make more sense.

.. _Help.Github: http://help.github.com/
.. _`Pro Git`: http://progit.org/book/
.. _`list of git resources on StackOverflow`: http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide

Git Practices at Mozilla
------------------------

* Read about the `git-flow model`_. We work similarly to this at * Read about the `git-flow model`_. We work similarly to this at
Mozilla, except we use ``master`` as our development branch, Mozilla, except we use ``master`` as our development branch,
``prod`` for our production branch, and ``bug-$BUG_NUMBER`` as our ``prod`` for our production branch, and ``bug-$BUG_NUMBER`` as our
Expand All @@ -37,17 +50,13 @@ lots of awesome sites for git newbies. We recommend:
awesome**, especially if regressions crop up! awesome**, especially if regressions crop up!
* We use ``git submodule`` for our libraries. This `git submodules explained`_ * We use ``git submodule`` for our libraries. This `git submodules explained`_
article helps you understand how they work. article helps you understand how they work.
* We often use ``git rebase`` to combine and fix commits before merging to
mozilla origin repositories. This helps code reviews and keeps
commit history clean. GitHub has `a good rebase article`_.


Next time you start a project, use ``git``/GitHub_! Working on a
project by yourself is a bit different than working with others, but
start using the basics of ``git`` and some of the more wild stuff
(multiple origins, rebasing, etc.) will make more sense.

.. _Help.Github: http://help.github.com/
.. _`Pro Git`: http://progit.org/book/
.. _`list of git resources on StackOverflow`: http://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide
.. _`git-flow model`: http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/ .. _`git-flow model`: http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/
.. _`git submodules explained`: http://longair.net/blog/2010/06/02/git-submodules-explained/ .. _`git submodules explained`: http://longair.net/blog/2010/06/02/git-submodules-explained/
.. _`a good rebase article`: http://help.github.com/rebase/


github.com/mozilla github.com/mozilla
------------------ ------------------
Expand Down

0 comments on commit 91ca1dc

Please sign in to comment.