Last active
March 3, 2017 00:17
-
-
Save duaneleem/642ce1c94024e7b85d0757b6f0f9ea29 to your computer and use it in GitHub Desktop.
.gitignore aliases for lazy devs
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] | |
# Pushes to gh-pages then switches back to master | |
pagespush = "!git add . && git commit -m 'Updated content.' && git push && git checkout gh-pages && git merge master && git push origin gh-pages && git checkout master" | |
# Update local/remote repo; delete gh-pages; and push dist folder to gh-pages. Great for Angular projects. | |
distpush = "!git add . && git commit -m 'Updated content.' && git push && git push origin --delete gh-pages && git subtree push --prefix dist origin gh-pages" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment