Project

upstreamer

0.0
No commit activity in last 3 years
No release in over 3 years
Add `upstream` remote-tracking branch to your forked repository by tracking GitHub.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
~> 10.0

Runtime

~> 3.4
>= 0.21.3
 Project Readme

Gem Version Dependency Status Code Climate

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

  1. Fork it ( https://github.com/meganemura/upstreamer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request