Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Kirby Fernandez kirbygit

🎯
Focusing
View GitHub Profile
@kirbygit
kirbygit / Syncing-fork.md
Created Mar 25, 2018
Keeping a fork up to date
View Syncing-fork.md

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
View gist:bfe6d59834fbc7811f86ce9556bb2b2d
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.2.6
-----> Installing dependencies using bundler 1.13.6
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Installing i18n 0.7.0
Installing rake 11.3.0
You can’t perform that action at this time.