Skip to content

Instantly share code, notes, and snippets.

@xavxyz
Last active January 12, 2017 08:35
Show Gist options
  • Save xavxyz/8a4cafcfcf27d72f2fbb05f4b9f3ac9e to your computer and use it in GitHub Desktop.
Save xavxyz/8a4cafcfcf27d72f2fbb05f4b9f3ac9e to your computer and use it in GitHub Desktop.
Stash, pull, apply, repeat
echo "// ------ πŸ”­ Updating Nova"
echo "// ------ Stashing your changes..."
git add .
git stash
# devel = Nova Apollo stable branch at the moment
git checkout devel
# origin = https://github.com/TelescopeJS/Telescope.git
git pull origin
echo "// ------ πŸ”­ Nova updated!"
echo "// ------ Applying your changes..."
git stash apply
cd packages/trn-core
echo "// ------ πŸ‰ Updating package trn-core"
echo "// ------ Stashing your changes..."
git stash
# origin = https://github.com/dominictracey/trn-core.git
git pull origin
echo "// ------ πŸ‰ Package trn-core updated!"
echo "// ------ Applying your changes..."
git stash apply
cd ../trn-rest-redux
echo "// ------ πŸ‰ Updating package trn-rest-redux"
echo "// ------ Stashing your changes..."
git stash
# origin = https://github.com/dominictracey/trn-rest-redux.git
git pull origin
echo "// ------ πŸ‰ Package trn-rest-redux updated!"
echo "// ------ Applying your changes..."
git stash apply
cd ../..
echo "// ------ πŸš€ Ready to dev!"
@xavxyz
Copy link
Author

xavxyz commented Jan 5, 2017

Feel free to replace the origin remote name if yours are different, however they should point to these repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment