B2G/QA/Apply Patches
From MozillaWiki
For a Gaia patch there are several ways that you can handle applying a patch.
1) Creating a new branch I recommend that you create a branch locally first for the changes that you are about to make. You can do this by:
- git checkout -b <branch name>
- ex git checkout -b Bug908513
2) you can pull the branch locally from a developer's git hub repo via :
- git pull <their gaia.git repo> <branch name>
- ex git pull https://github.com/davidflanagan/gaia.git bug989290-v1.3t
3) to see the branches available locally:
- git branch
4) to switch branches:
- git checkout <branch name>
- ex git checkout master
5) to delete a no longer used branch:
- git branch -D <branch name>
- ex. git branch -D bug_905831