witch back to 1) original branch if not already there and 2) the parent working directory

if (this.branch != current.branch) system(paste('git checkout -f',
current.branch))
setwd('..')
Merge branch 'master' of github.com:adamvi/SGPstateData