Skip to content

Instantly share code, notes, and snippets.

View edwardteach42's full-sized avatar

Edward Teach edwardteach42

View GitHub Profile
@edwardteach42
edwardteach42 / Remove all git tags
Created February 23, 2022 01:08 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@edwardteach42
edwardteach42 / .gitignore
Created January 11, 2012 22:58 — forked from miles/.gitignore
Augmented .gitignore for Rails in Aptana
.bundle
.settings
.project
db/*.sqlite3*
log/*.log
*.log
tmp/**/*
tmp/*
doc/api
doc/app