Skip to content

Instantly share code, notes, and snippets.

@Bonno
Last active August 29, 2015 14:15
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 Bonno/3c6d81f75af53a317430 to your computer and use it in GitHub Desktop.
Save Bonno/3c6d81f75af53a317430 to your computer and use it in GitHub Desktop.
Webdev cli-aliasses
# Flush magento cache/fullpagecache
alias flush='setopt rmstarsilent && rm -rf var/cache/* && rm -rf var/full_page_cache/* && unsetopt rmstarsilent'
# Return the current branch name
alias repo='git rev-parse --abbrev-ref HEAD'
alias gpo='git push origin'
alias gb='git br'
# Set the upstream for the current branch
alias gbu='git branch --set-upstream `repo` origin/`repo`'
alias gn='git new'
# Alias to merge current branch to preview-branch
alias gpr='git preview `repo`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment