Skip to content

Instantly share code, notes, and snippets.

@mjvo
Last active August 20, 2016 21:04
Show Gist options
  • Save mjvo/ac540de5038159298705afda28c82c94 to your computer and use it in GitHub Desktop.
Save mjvo/ac540de5038159298705afda28c82c94 to your computer and use it in GitHub Desktop.
Git instructions for forking own repo using reveal-jekyll-slideserver as example
git clone https://github.com/mjvo/reveal-jekyll-slideserver NEW_REPO
cd NEW_REPO
[create NEW_REPO on github.com]
git remote set-url origin https://github.com/mjvo/NEW_REPO.git
git push origin gh-pages
git remote add upstream https://github.com/mjvo/reveal-jekyll-slideserver.git
git remote -v
> output
origin https://github.com/mjvo/NEW_REPO.git (fetch)
origin https://github.com/mjvo/NEW_REPO.git (push)
upstream https://github.com/mjvo/reveal-jekyll-slideserver.git (fetch)
upstream https://github.com/mjvo/reveal-jekyll-slideserver.git (push)
> END output
// to update from upstream
git fetch upstream
git merge upstream/gh-pages
[Optional: Launch Github for OS X --> File Add Local Repository]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment