Skip to content

Instantly share code, notes, and snippets.

@Souler
Souler / rename_tags.sh
Last active June 18, 2017 09:37
Bulk rename Git Tags
#!/bin/sh
for tag in `git tag`; do
newTag="v$tag"
echo "$tag -> $newTag"
git tag $newTag $tag # Create the new tag where the older pointed
git tag -d "$tag" # Delete the old tag
git push origin ":refs/tags/$tag" # Delete the old tag from the remote
done
git push --tags # Push all the new tags

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);