Skip to content

Instantly share code, notes, and snippets.

php_version: 7.4
api_version: 1
@alexyoungcl
alexyoungcl / backup.sh
Last active October 18, 2018 21:32
Terminus backup DB only
terminus backup:create site.dev --element=db --keep-for=30
@alexyoungcl
alexyoungcl / git-tag-delete-local-and-remote.sh
Created August 1, 2018 20:26 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@alexyoungcl
alexyoungcl / search-replace.sh
Created June 25, 2018 16:26
Pantheon Terminus wp-cli search and replace
terminus remote:wp site.dev -- search-replace '/the/old/path/' '/new/path/'