Skip to content

Instantly share code, notes, and snippets.

@ebridges
Created February 16, 2013 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebridges/4965434 to your computer and use it in GitHub Desktop.
Save ebridges/4965434 to your computer and use it in GitHub Desktop.
git init local folder to an upstream repo
mkdir -p ~/src/my-boxen
cd ~/src/my-boxen
git init
git remote add upstream https://github.com/boxen/our-boxen
git fetch upstream
git checkout -b master upstream/master
git remote add origin https://github.com/wfarr/my-boxen
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment