Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active March 3, 2017 00:17
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 duaneleem/642ce1c94024e7b85d0757b6f0f9ea29 to your computer and use it in GitHub Desktop.
Save duaneleem/642ce1c94024e7b85d0757b6f0f9ea29 to your computer and use it in GitHub Desktop.
.gitignore aliases for lazy devs
[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