Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj
Last active August 29, 2015 14:03
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 rogeriopradoj/ff8a8b6442e5d9b0b535 to your computer and use it in GitHub Desktop.
Save rogeriopradoj/ff8a8b6442e5d9b0b535 to your computer and use it in GitHub Desktop.
syncing PHPSP/php-src fork (PHPSP as origin, php as upstream) #phpspMaisTestFest
$ wget http://git.io/OrBwYg \
--output-document=/tmp/sync_phpsp_php-src_fork.sh \
--no-check-certificate

$ chmod +x /tmp/sync_phpsp_php-src_fork.sh

$ /tmp/sync_phpsp_php-src_fork.sh

#############################
# check if ~/bin is in your env variable PATH
# echo $PATH | grep ~/bin
$ mkdir -p ~/bin/
$ wget -O ~/bin/sync_phpsp_php-src_fork http://git.io/sync_phpsp_php-src_fork
$ chmod +x ~/bin/sync_phpsp_php-src_fork





#!/usr/bin/env bash
git fetch upstream
for BRANCH in master PHP-5.6 PHP-5.5; do
git checkout $BRANCH
git pull upstream $BRANCH
git push origin $BRANCH
done
git fetch upstream
for BRANCH in master PHP-5.6 PHP-5.5; do
git checkout $BRANCH
git pull upstream $BRANCH
git push origin $BRANCH
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment