Skip to content

Instantly share code, notes, and snippets.

@jeremyvaught
Created December 18, 2013 16:08
Show Gist options
  • Save jeremyvaught/8024958 to your computer and use it in GitHub Desktop.
Save jeremyvaught/8024958 to your computer and use it in GitHub Desktop.
Setting new upstream in Laravel to get occasional updates
# pulled from http://niallobrien.me/2013/03/installing-and-updating-laravel-4 which I referenced often
mkdir newinstall.dev
cd newinstall.dev
git clone git@github.com:laravel/laravel.git .
composer udpate # It's installed globally
git remote rename origin upstream
git remote add origin git@github.com:jeremyvaught/newinstall.com.git
git push -u origin master
# I also like to create the develop branch while I'm here so from here on I just need to type `git push`
git branch develop
git checkout develop
git push -u origin develop
# And now from time to time I run
git fetch upstream -v
git merge upstream/master
# ... and all is right with the world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment