git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
# source files with errors | |
# https://stackoverflow.com/questions/14612190/is-there-a-way-to-source-and-continue-after-an-error | |
# Source TD Data Pull | |
ll <- parse(file = "11-tda_pull.R") | |
for (i in seq_along(ll)) { | |
tryCatch(eval(ll[[i]]), | |
error = function(e) message("Oops! ", as.character(e))) | |
} |
setwd("~/rProgramming") | |
files.sources = list.files() | |
sapply(files.sources, source) |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: