duaneleem
1/24/2017 - 6:04 PM

.gitignore aliases for lazy devs

.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"