Upstreamer
Add upstream
remote-tracking branch to your forked repository by tracking GitHub.
Usage
$ gem install upstreamer
$ cd /path/to/forked-repository
$ git remote -v
origin https://github.com/your-username/forked-repository.git (fetch)
origin https://github.com/your-username/forked-repository.git (push)
$ upstreamer
git remote add upstream https://github.com/upstream-username/forked-repository.git
$ git remote -v
origin https://github.com/your-username/forked-repository.git (fetch)
origin https://github.com/your-username/forked-repository.git (push)
upstream https://github.com/upstream-username/forked-repository.git (fetch)
upstream https://github.com/upstream-username/forked-repository.git (push)
Batch configure
$ cd /path/to/your-repositories-directory
$ ls -1
forked-repo1
forked-repo2
forked-repo3
$ ls -d $PWD/* | xargs -n1 upstreamer
git remote add upstream https://github.com/upstream-username/forked-repo1.git
git remote add upstream https://github.com/upstream-username/forked-repo2.git
git remote add upstream https://github.com/upstream-username/forked-repo3.git
Using with ghq
$ ghq list --full-path | grep github.com/your-username | xargs -n1 upstreamer
Contributing
- Fork it ( https://github.com/meganemura/upstreamer/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request