blob: dae700b2235bf7d6d1e30e280f84c92ec1a86773 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
#origin (default push to both: overlays.gentoo.org and github, fetch from gentoo)
git config --replace-all remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
git config --replace-all remote.origin.url git://git.overlays.gentoo.org/user/benf.git
git config --replace-all remote.origin.pushurl git+ssh://git@git.overlays.gentoo.org/user/benf.git
git config --add remote.origin.pushurl git+ssh://git@github.com/benf/gentoo-overlay
# overlays.gentoo.org
git config --replace-all remote.gentoo.fetch '+refs/heads/*:refs/remotes/gentoo/*'
git config --replace-all remote.gentoo.url git://git.overlays.gentoo.org/user/benf.git
git config --replace-all remote.gentoo.pushurl git+ssh://git@git.overlays.gentoo.org/user/benf.git
# github
git config --replace-all remote.github.fetch '+refs/heads/*:refs/remotes/github/*'
git config --replace-all remote.github.url git://github.com/benf/gentoo-overlay.git
git config --replace-all remote.github.pushurl git+ssh://git@github.com/benf/gentoo-overlay.git
# master branch
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
|