Wednesday, September 17, 2014

How to apply a patch in git e.g. merge a pull request

git remote add zacc https://github.com/zacc/gaia.git
git branch zacc
git checkout zacc
git fetch zacc
git checkout -b bug_1060381 zacc/bug_1060381

git status
# On branch zacc
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
# .idea/
# tests/python/gaia-ui-tests/gaiatest/gecko.log
# tests/python/gaia-ui-tests/gaiatest/testvars.json
# xulrunner-sdk-30/
# xulrunner-sdk-33/
nothing added to commit but untracked files present (use "git add" to track)

git remote -v
origin https://github.com/mozilla-b2g/gaia.git (fetch)
origin https://github.com/mozilla-b2g/gaia.git (push)
zacc https://github.com/zacc/gaia.git (fetch)
zacc https://github.com/zacc/gaia.git (push)

No comments:

Post a Comment