Created
September 26, 2014 16:31
-
-
Save shadyvb/9db462f00b64ea48e25c to your computer and use it in GitHub Desktop.
git preview
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
[alias] | |
preview ="!f() { git branch -D preview; git fetch; git checkout preview; git merge -; git push; /path/to/wp-vip-preview/bin/deploy-preview.sh > /dev/null 2>&1; git checkout -; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
git preview
Add to
~/.gitconfig
Make sure you edit
/path/to/wp-vip-preview