$ 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
-
-
Save rogeriopradoj/ff8a8b6442e5d9b0b535 to your computer and use it in GitHub Desktop.
syncing PHPSP/php-src fork (PHPSP as origin, php as upstream) #phpspMaisTestFest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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