Skip to content

meganemura/upstreamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Add an `upstream` remote-tracking branch to your forked repository by tracking GitHub.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages