-
Notifications
You must be signed in to change notification settings - Fork 164
Home
Xarthisius edited this page May 5, 2012
·
6 revisions
Welcome to the sci wiki!
Make sure that your .git/config has the following settings:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git+ssh://git@git.overlays.gentoo.org/proj/sci.git
pushurl = git@github.com:gentoo-science/sci.git
pushurl = git+ssh://git@git.overlays.gentoo.org/proj/sci.git
[remote "github"]
url = git@github.com:gentoo-science/sci.git
fetch = +refs/heads/*:refs/remotes/github/*
You can pull/push to both repos at once using --all switch.
This assumes that you're using config described above.
-
Get the PR (I'll use PR 3 as an example), please notice that github provides some useful info on the PR itself, like: nbigaouette wants someone to merge 11 commits into gentoo-science:master from nbigaouette:gdebugger
$ git fetch github $ git checkout -b nbigaouette-gdebugger master --no-track $ git pull https://github.com/nbigaouette/sci.git gdebugger
-
Go wild evaluating PR, edit if necessary, add, push
-
Merge PR
$ git fetch github $ git checkout master $ git merge nbigaouette-gdebugger $ git -D nbigaouette-gdebugger $ git push --all