Get mozilla-central via git-cinnabar
- Check if
git
is installed in your system - Open terminal
# Clone your own gecko repository git clone https://github.com/<your_username>/gecko-dev.git # e.g., git clone https://github.com/ChunMinChang/gecko-dev.git # or use mozilla's repo directly by git clone https://github.com/mozilla/gecko-dev.git # If you use your own gecko repo, set mozilla's repo as upstream and update your repo # (This step is not necessary) cd gecko-dev/ git remote add upstream https://github.com/mozilla/gecko-dev.git git fetch upstream git merge --ff-only upstream/master git push # Install necessary utils for building gecko, # including the git-cinnabar at c:/Users/Chun-Min Chang/.mozbuild\git-cinnabar ./mach bootstrap # Install moz-phab to submit patches mach install-moz-phab # Export git-cinnabar to PATH export PATH="$HOME/.mozbuild/git-cinnabar:$PATH" # Then, follow https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development # to setup the remotes. # 1. Add remotes for the mercurial repositories you pull from git config fetch.prune true git remote add central hg::https://hg.mozilla.org/mozilla-central -t branches/default/tip git config remote.central.fetch +refs/heads/branches/default/tip:refs/remotes/central/default # 2. Setup a remote for the try server git remote add try hg::https://hg.mozilla.org/try git config remote.try.skipDefaultUpdate true git remote set-url --push try hg::ssh://hg.mozilla.org/try git config remote.try.push +HEAD:refs/heads/branches/default/tip # 3. Update all the remotes (probably needs 1 hour) git remote update # Now mozilla-central is cloned and up to date. you can start developing from central branch # Create a central branch git checkout -b central central/default