Skip to content

Instantly share code, notes, and snippets.

View matteomattei's full-sized avatar

Matteo Mattei matteomattei

View GitHub Profile
@purplespider
purplespider / mysqlclone
Last active August 29, 2015 14:03
Clone Remote (Live) MySQL Database to Local (Dev)
ssh [REMOTE-USER]@[REMOTE-SERVER] mysqldump -u [REMOTE-MYSQL-USER] -p[REMOTE-MYSQL-PASSWORD] [REMOTE-MYSQL-DATABASENAME] | mysql -u [LOCAL-MYSQL-USER] -p[LOCAL-MYSQL-PASSWORD] [LOCAL-MYSQL-DATABASENAME]
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active November 2, 2024 08:30
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